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

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

[Dotgnu-pnet-commits] CVS: pnet/engine process.c,1.55,1.56


From: Thong Nguyen <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/engine process.c,1.55,1.56
Date: Tue, 22 Jul 2003 18:18:33 -0400

Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv17384/engine

Modified Files:
        process.c 
Log Message:
Unregisters the main thread so it can be reused after a process
is destroyed.


Index: process.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/process.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -C2 -r1.55 -r1.56
*** process.c   16 Jul 2003 00:45:05 -0000      1.55
--- process.c   22 Jul 2003 22:18:31 -0000      1.56
***************
*** 335,349 ****
        ILGCEnableFinalizers(); 
  
!       /* Destroy the main thread if we aren't the main thread or the 
finalizer thread*/
        if (!mainIsFinalizer && ILThreadSelf() != mainSupportThread)
        {
                /* Abort the thread */
!               ILThreadAbort(mainSupportThread);
  
!               /* Wait for the thread to be aborted */
!               ILThreadJoin(mainSupportThread, -1);
! 
!               /* Destroy the thread object */
!               ILThreadDestroy(mainSupportThread);
        }
        
--- 335,349 ----
        ILGCEnableFinalizers(); 
  
!       /* Abort the main thread if we aren't the main thread or the finalizer 
thread*/
        if (!mainIsFinalizer && ILThreadSelf() != mainSupportThread)
        {
                /* Abort the thread */
!               ILThreadAbort(mainSupportThread);               
!       }
  
!       /* Unregister the main thread since its engine thread is now gone */
!       if (ILThreadSelf() == mainSupportThread)
!       {
!               ILThreadUnregisterForManagedExecution(mainSupportThread);
        }
        





reply via email to

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