Mon Apr 23 9:27:00 2001 Robert Collins <rbtcollins@hotmail.com>
* thread.cc (MTinterface::Init): Always initialise per process variables.
This commit is contained in:
		| @@ -1,3 +1,7 @@ | |||||||
|  | Mon Apr 23  9:27:00 2001  Robert Collins <rbtcollins@hotmail.com> | ||||||
|  |  | ||||||
|  | 	* thread.cc (MTinterface::Init): Always initialise per process variables. | ||||||
|  |  | ||||||
| Sun Apr 22 19:18:18 2001  Christopher Faylor <cgf@cygnus.com> | Sun Apr 22 19:18:18 2001  Christopher Faylor <cgf@cygnus.com> | ||||||
|  |  | ||||||
| 	* features.h: Reinstate as wrapper for sys/features.h. | 	* features.h: Reinstate as wrapper for sys/features.h. | ||||||
|   | |||||||
| @@ -294,16 +294,16 @@ MTinterface::Init (int forked) | |||||||
|   concurrency = 0; |   concurrency = 0; | ||||||
|   threadcount = 1; /* 1 current thread when Init occurs.*/ |   threadcount = 1; /* 1 current thread when Init occurs.*/ | ||||||
|  |  | ||||||
|   if (forked) |  | ||||||
|     return; |  | ||||||
|  |  | ||||||
|   /* possible the atfork lists should be inited here as well */ |  | ||||||
|  |  | ||||||
|   mainthread.win32_obj_id = myself->hProcess; |   mainthread.win32_obj_id = myself->hProcess; | ||||||
|   mainthread.setThreadIdtoCurrent (); |   mainthread.setThreadIdtoCurrent (); | ||||||
|   /* store the main thread's self pointer */ |   /* store the main thread's self pointer */ | ||||||
|   TlsSetValue (thread_self_dwTlsIndex, &mainthread); |   TlsSetValue (thread_self_dwTlsIndex, &mainthread); | ||||||
|  |  | ||||||
|  |   if (forked) | ||||||
|  |     return; | ||||||
|  |  | ||||||
|  |   /* possible the atfork lists should be inited here as well */ | ||||||
|  |  | ||||||
|   for (int i =0;i<256;i++)pshared_mutexs[i]=NULL; |   for (int i =0;i<256;i++)pshared_mutexs[i]=NULL; | ||||||
|  |  | ||||||
| #if 0 | #if 0 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user