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:
parent
18be975d30
commit
404f35cb5c
|
@ -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>
|
||||
|
||||
* cygserver_transport_pipes.cc (transport_layer_pipes::accept):
|
||||
|
|
|
@ -935,7 +935,8 @@ pthread_cond::fixup_after_fork ()
|
|||
|
||||
/* pthread_key */
|
||||
/* 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
|
||||
pthread_key::saveAKey (pthread_key *key)
|
||||
|
@ -1097,6 +1098,7 @@ pthread_mutex::isGoodInitializerOrObject (pthread_mutex_t const *mutex)
|
|||
return true;
|
||||
}
|
||||
|
||||
/* This is used for mutex creation protection within a single process only */
|
||||
pthread_mutex::nativeMutex pthread_mutex::mutexInitializationLock NO_COPY;
|
||||
|
||||
/* We can only be called once.
|
||||
|
@ -2640,6 +2642,6 @@ pthreadNull::getsequence_np ()
|
|||
return 0;
|
||||
}
|
||||
|
||||
pthreadNull NO_COPY pthreadNull::_instance;
|
||||
pthreadNull pthreadNull::_instance;
|
||||
|
||||
#endif // MT_SAFE
|
||||
|
|
Loading…
Reference in New Issue