dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/support wakeup.c,1.3,1.4


From: Thong Nguyen <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/support wakeup.c,1.3,1.4
Date: Sun, 06 Jul 2003 21:58:35 -0400

Update of /cvsroot/dotgnu-pnet/pnet/support
In directory subversions:/tmp/cvs-serv1500/support

Modified Files:
        wakeup.c 
Log Message:
Fix for ILWakeupWait race bug


Index: wakeup.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/support/wakeup.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** wakeup.c    6 Jun 2002 23:54:39 -0000       1.3
--- wakeup.c    7 Jul 2003 01:58:32 -0000       1.4
***************
*** 96,100 ****
        {
                /* Give up the lock and wait for someone to signal us */
!               if(_ILCondVarTimedWait(&(wakeup->condition), &(wakeup->lock), 
ms))
                {
                        if(wakeup->interrupted)
--- 96,107 ----
        {
                /* Give up the lock and wait for someone to signal us */
! 
!               /* But first make sure someone hasn't already signalled us
!                  between the time we registered the wakeup and the time
!                  we called ILWakeupWait (if a signal was sent we would
!                  have missed it). */
!                  
!               if(wakeup->count >= wakeup->limit
!                       || _ILCondVarTimedWait(&(wakeup->condition), 
&(wakeup->lock), ms))
                {
                        if(wakeup->interrupted)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]