Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /condvar.c [951895] .. [a366b6] Maximize Restore

  Switch to side-by-side view

--- a/condvar.c
+++ b/condvar.c
@@ -52,7 +52,7 @@
    * the number of processors + 1.
    *
    */
-  EnterCriticalSection(&_pthread_cond_test_init_lock);
+  EnterCriticalSection(&ptw32_cond_test_init_lock);
 
   /*
    * We got here possibly under race
@@ -75,7 +75,7 @@
       result = EINVAL;
     }
 
-  LeaveCriticalSection(&_pthread_cond_test_init_lock);
+  LeaveCriticalSection(&ptw32_cond_test_init_lock);
 
   return(result);
 }
@@ -492,7 +492,7 @@
       /*
        * See notes in _cond_check_need_init() above also.
        */
-      EnterCriticalSection(&_pthread_cond_test_init_lock);
+      EnterCriticalSection(&ptw32_ond_test_init_lock);
 
       /*
        * Check again.
@@ -516,7 +516,7 @@
           result = EBUSY;
         }
 
-      LeaveCriticalSection(&_pthread_cond_test_init_lock);
+      LeaveCriticalSection(&ptw32_cond_test_init_lock);
     }
 
   return (result);
@@ -655,14 +655,14 @@
        *              timeout
        *
        * Note: 
-       *      _pthread_sem_timedwait is a cancelation point,
+       *      ptw32_sem_timedwait is a cancelation point,
        *      hence providing the
        *      mechanism for making pthread_cond_wait a cancelation
        *      point. We use the cleanup mechanism to ensure we
        *      re-lock the mutex and decrement the waiters count
        *      if we are canceled.
        */
-      if (_pthread_sem_timedwait (&(cv->sema), abstime) == -1)
+      if (ptw32_sem_timedwait (&(cv->sema), abstime) == -1)
 	{
 	  result = errno;
 	}
@@ -947,7 +947,7 @@
 
 #ifdef NEED_SEM
 
-      result = (_pthread_increase_semaphore( &cv->sema, cv->waiters )
+      result = (ptw32_increase_semaphore( &cv->sema, cv->waiters )
 		? 0
 		: EINVAL);