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

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

[Dotgnu-pnet-commits] CVS: pnet/include il_thread.h,1.14,1.15


From: Thong Nguyen <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/include il_thread.h,1.14,1.15
Date: Mon, 07 Jul 2003 15:44:07 -0400

Update of /cvsroot/dotgnu-pnet/pnet/include
In directory subversions:/tmp/cvs-serv29847/include

Modified Files:
        il_thread.h 
Log Message:
Added support for thread cleanup handlers and fixed
race condition in ILThreadJoin()


Index: il_thread.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_thread.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** il_thread.h 6 Jul 2003 22:02:26 -0000       1.14
--- il_thread.h 7 Jul 2003 19:44:05 -0000       1.15
***************
*** 45,53 ****
  
  /*
-  * Type for a thread start function.
-  */
- typedef void (*ILThreadStartFunc)(void *objectArg);
- 
- /*
   * Opaque types for thread-related objects.
   */
--- 45,48 ----
***************
*** 57,60 ****
--- 52,64 ----
  typedef struct _tagILWaitHandle ILWaitHandle;
  
+ /*
+  * Type for a thread start function.
+  */
+ typedef void (*ILThreadStartFunc)(void *objectArg);
+ 
+ /*
+  *    Cleanup function for ILThread.
+  */
+ typedef void (*ILThreadCleanupFunc)(ILThread *thread);
  
  /*
***************
*** 246,249 ****
--- 250,267 ----
   */
  void ILThreadWaitForForegroundThreads(int timeout);
+ 
+ /*
+  *    Registers a function that will be called by the thread when it has 
thread finished.
+  *
+  * Returns 0 on success.
+  */
+ int ILThreadRegisterCleanup(ILThread *thread, ILThreadCleanupFunc func);
+ 
+ /*
+  *    Unregisters a thread cleanup function.
+  *
+  * Returns 0 on success.
+  */
+ int ILThreadUnregisterCleanup(ILThread *thread, ILThreadCleanupFunc func);
  
  /*





reply via email to

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