/[dotgnu-pnet]/pnet/support/thread.c
ViewVC logotype

Diff of /pnet/support/thread.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.31 by ktreichel, Mon Oct 10 20:03:15 2005 UTC revision 1.32 by ktreichel, Sun Nov 6 17:35:31 2005 UTC
# Line 313  void _ILThreadRun(ILThread *thread) Line 313  void _ILThreadRun(ILThread *thread)
313  {        {      
314          /* When a thread starts, it blocks until the ILThreadStart function          /* When a thread starts, it blocks until the ILThreadStart function
315             has finished setup */             has finished setup */
316          _ILThreadSuspendSelf(thread);          /* Wait until the starting thread has released the lock */
317            _ILMutexLock(&(thread->lock));
318            _ILMutexUnlock(&(thread->lock));
319    
320          /* If we still have a startup function, then execute it.          /* If we still have a startup function, then execute it.
321             The field may have been replaced with NULL if the thread             The field may have been replaced with NULL if the thread
# Line 422  int ILThreadStart(ILThread *thread) Line 424  int ILThreadStart(ILThread *thread)
424    
425                          _ILThreadAdjustCount(1, (thread->state & IL_TS_BACKGROUND) ? 1 : 0);                          _ILThreadAdjustCount(1, (thread->state & IL_TS_BACKGROUND) ? 1 : 0);
426    
                 #if defined(GC_OPENBSD_THREADS)  
                         pthread_yield();  
                 #endif  
   
                         /* Let the thread start running */  
                         _ILThreadResumeSelf(thread);  
   
427                          result = 1;                          result = 1;
428                  }                  }
429          }          }

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26