summaryrefslogtreecommitdiff
path: root/rwlock.c
diff options
context:
space:
mode:
authorrpj <rpj>2000-09-02 04:02:20 +0000
committerrpj <rpj>2000-09-02 04:02:20 +0000
commit54286bb31e57ff4ae0f03810b7acc27031bcb034 (patch)
tree09ab610b97afa1f2d464f8dd2bf2ec64ab05b9ce /rwlock.c
parent9250a2a259e1163c3c3e234366a1b8c65b64a89f (diff)
2000-09-02 Ross Johnson <rpj@special.ise.canberra.edu.au>
* rwlock.c (_rwlock_check*): Renamed to ptw32_rwlock_check*. * mutex.c (_mutex_check*): Renamed to ptw32_mutex_check*. * condvar.c (cond_timed*): Renamed to ptw32_cond_timed*. (_cond_check*): Renamed to ptw32_cond_check*.
Diffstat (limited to 'rwlock.c')
-rw-r--r--rwlock.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/rwlock.c b/rwlock.c
index 4353847..302d77b 100644
--- a/rwlock.c
+++ b/rwlock.c
@@ -29,7 +29,7 @@
#include "implement.h"
static int
-_rwlock_check_need_init(pthread_rwlock_t *rwlock)
+ptw32_rwlock_check_need_init(pthread_rwlock_t *rwlock)
{
int result = 0;
@@ -198,7 +198,7 @@ pthread_rwlock_destroy(pthread_rwlock_t *rwlock)
else
{
/*
- * See notes in _rwlock_check_need_init() above also.
+ * See notes in ptw32_rwlock_check_need_init() above also.
*/
EnterCriticalSection(&ptw32_rwlock_test_init_lock);
@@ -254,12 +254,12 @@ pthread_rwlock_rdlock(pthread_rwlock_t *rwlock)
/*
* We do a quick check to see if we need to do more work
* to initialise a static rwlock. We check
- * again inside the guarded section of _rwlock_check_need_init()
+ * again inside the guarded section of ptw32_rwlock_check_need_init()
* to avoid race conditions.
*/
if (*rwlock == (pthread_rwlock_t) PTW32_OBJECT_AUTO_INIT)
{
- result = _rwlock_check_need_init(rwlock);
+ result = ptw32_rwlock_check_need_init(rwlock);
if (result != 0 && result != EBUSY)
{
@@ -332,12 +332,12 @@ pthread_rwlock_wrlock(pthread_rwlock_t * rwlock)
/*
* We do a quick check to see if we need to do more work
* to initialise a static rwlock. We check
- * again inside the guarded section of _rwlock_check_need_init()
+ * again inside the guarded section of ptw32_rwlock_check_need_init()
* to avoid race conditions.
*/
if (*rwlock == (pthread_rwlock_t) PTW32_OBJECT_AUTO_INIT)
{
- result = _rwlock_check_need_init(rwlock);
+ result = ptw32_rwlock_check_need_init(rwlock);
if (result != 0 && result != EBUSY)
{
@@ -463,12 +463,12 @@ pthread_rwlock_tryrdlock(pthread_rwlock_t * rwlock)
/*
* We do a quick check to see if we need to do more work
* to initialise a static rwlock. We check
- * again inside the guarded section of _rwlock_check_need_init()
+ * again inside the guarded section of ptw32_rwlock_check_need_init()
* to avoid race conditions.
*/
if (*rwlock == (pthread_rwlock_t) PTW32_OBJECT_AUTO_INIT)
{
- result = _rwlock_check_need_init(rwlock);
+ result = ptw32_rwlock_check_need_init(rwlock);
if (result != 0 && result != EBUSY)
{
@@ -518,12 +518,12 @@ pthread_rwlock_trywrlock(pthread_rwlock_t * rwlock)
/*
* We do a quick check to see if we need to do more work
* to initialise a static rwlock. We check
- * again inside the guarded section of _rwlock_check_need_init()
+ * again inside the guarded section of ptw32_rwlock_check_need_init()
* to avoid race conditions.
*/
if (*rwlock == (pthread_rwlock_t) PTW32_OBJECT_AUTO_INIT)
{
- result = _rwlock_check_need_init(rwlock);
+ result = ptw32_rwlock_check_need_init(rwlock);
if (result != 0 && result != EBUSY)
{