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_engine.h,1.36,1.37 il_gc.h,1


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/include il_engine.h,1.36,1.37 il_gc.h,1.6,1.7 il_thread.h,1.10,1.11
Date: Wed, 25 Jun 2003 23:39:27 -0400

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

Modified Files:
        il_engine.h il_gc.h il_thread.h 
Log Message:
Threading support, Patch #1657


Index: il_engine.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_engine.h,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -r1.36 -r1.37
*** il_engine.h 22 Jun 2003 17:16:44 -0000      1.36
--- il_engine.h 26 Jun 2003 03:39:25 -0000      1.37
***************
*** 29,32 ****
--- 29,37 ----
  
  /*
+  *    Structure used by the EE for storing monitors.
+  */
+ typedef struct _tagILExecMonitor ILExecMonitor;
+ 
+ /*
   * Execution control context for a process.
   */
***************
*** 183,186 ****
--- 188,196 ----
  
  /*
+  *    Wait for all user threads in a process to finish.
+  */
+ void ILExecProcessWaitForUserThreads(ILExecProcess *process);
+ 
+ /*
   * Destroy a process and all threads associated with it.
   */
***************
*** 312,321 ****
   */
  ILExecThread *ILExecThreadCurrent(void);
- 
- /*
-  * Create a new thread and attach it to a process.
-  * Returns NULL if out of memory.
-  */
- ILExecThread *ILExecThreadCreate(ILExecProcess *process);
  
  /*
--- 322,325 ----

Index: il_gc.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_gc.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** il_gc.h     17 Sep 2002 00:03:29 -0000      1.6
--- il_gc.h     26 Jun 2003 03:39:25 -0000      1.7
***************
*** 35,38 ****
--- 35,43 ----
  
  /*
+  *    Deinitialize the GC.
+  */
+ void ILGCDeinit();
+ 
+ /*
   * Allocate a block of memory from the garbage collector.
   * The block may contain pointers to other blocks.  The
***************
*** 109,112 ****
--- 114,122 ----
   */
  void ILGCUnregisterWeak(void *ptr);
+ 
+ /*
+  * Register a pointer to a general weak reference.
+  */
+ void ILGCRegisterGeneralWeak(void *ptr, void *obj);
  
  #ifdef        __cplusplus

Index: il_thread.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_thread.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** il_thread.h 15 Feb 2003 10:11:43 -0000      1.10
--- il_thread.h 26 Jun 2003 03:39:25 -0000      1.11
***************
*** 23,26 ****
--- 23,27 ----
  
  #include "il_system.h"
+ #include "il_engine.h"
  
  #ifdef        __cplusplus
***************
*** 56,59 ****
--- 57,66 ----
  typedef struct _tagILWaitHandle ILWaitHandle;
  
+ 
+ /*
+  *    Registers an ILThread and allow it to execute managed code. 
+  */
+ ILExecThread *ILThreadRegisterForManagedExecution(ILExecProcess *process, 
ILThread *thread, int isUserThread);
+ 
  /*
   * Determine if the system has thread support.  This can
***************
*** 354,357 ****
--- 361,379 ----
   */
  int ILWaitMonitorPulseAll(ILWaitHandle *handle);
+ 
+ /*
+  *    Checks if the monitor has no owner and no waiters.
+  */
+ int ILWaitMonitorCanClose(ILWaitHandle *handle);
+ 
+ /*
+  *    Similar to ILWaitMonitorLeave except that waiting moniters aren't 
signalled.
+  */
+ int ILWaitMonitorSpeculativeLeave(ILWaitHandle *handle);
+ 
+ /*
+  *    Signals waiting moniters when call after ILWaitMonitorSpeculativeLeave.
+  */
+ int ILWaitMonitorCompleteLeave(ILWaitHandle *handle);
  
  /*





reply via email to

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