2002-10-01 Robert Collins <rbtcollins@hotmail.com>
* thread.cc (pthread_key::keys): Copy on fork. Add a comment explaining
        why.
        (pthreadNull::_instance): Copy on fork. Absolutely no state exists
        in pthreadNull.
			
			
This commit is contained in:
		| @@ -1,3 +1,10 @@ | |||||||
|  | 2002-10-01  Robert Collins <rbtcollins@hotmail.com> | ||||||
|  |  | ||||||
|  | 	* thread.cc (pthread_key::keys): Copy on fork. Add a comment explaining | ||||||
|  | 	why. | ||||||
|  | 	(pthreadNull::_instance): Copy on fork. Absolutely no state exists | ||||||
|  | 	in pthreadNull.  | ||||||
|  |  | ||||||
| 2002-09-30  Conrad Scott  <conrad.scott@dsl.pipex.com> | 2002-09-30  Conrad Scott  <conrad.scott@dsl.pipex.com> | ||||||
|  |  | ||||||
| 	* cygserver_transport_pipes.cc (transport_layer_pipes::accept): | 	* cygserver_transport_pipes.cc (transport_layer_pipes::accept): | ||||||
|   | |||||||
| @@ -935,7 +935,8 @@ pthread_cond::fixup_after_fork () | |||||||
|  |  | ||||||
| /* pthread_key */ | /* pthread_key */ | ||||||
| /* static members */ | /* static members */ | ||||||
| List<pthread_key> pthread_key::keys NO_COPY; | /* This stores pthread_key information across fork() boundaries */ | ||||||
|  | List<pthread_key> pthread_key::keys; | ||||||
|  |  | ||||||
| void | void | ||||||
| pthread_key::saveAKey (pthread_key *key) | pthread_key::saveAKey (pthread_key *key) | ||||||
| @@ -1097,6 +1098,7 @@ pthread_mutex::isGoodInitializerOrObject (pthread_mutex_t const *mutex) | |||||||
|   return true; |   return true; | ||||||
| } | } | ||||||
|  |  | ||||||
|  | /* This is used for mutex creation protection within a single process only */ | ||||||
| pthread_mutex::nativeMutex pthread_mutex::mutexInitializationLock NO_COPY; | pthread_mutex::nativeMutex pthread_mutex::mutexInitializationLock NO_COPY; | ||||||
|  |  | ||||||
| /* We can only be called once. | /* We can only be called once. | ||||||
| @@ -2640,6 +2642,6 @@ pthreadNull::getsequence_np () | |||||||
|   return 0; |   return 0; | ||||||
| } | } | ||||||
|  |  | ||||||
| pthreadNull NO_COPY pthreadNull::_instance; | pthreadNull pthreadNull::_instance; | ||||||
|  |  | ||||||
| #endif // MT_SAFE | #endif // MT_SAFE | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user