* thread.cc (pthread_key::keys): Do not copy on fork.

(pthread_mutex::mutexInitializationLock): Ditto.
(pthreadNull::_instance): Ditto.
This commit is contained in:
Christopher Faylor 2002-09-30 15:00:52 +00:00
parent 63e5f2006d
commit e58273df45
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2002-09-30 Christopher Faylor <cgf@redhat.com>
* thread.cc (pthread_key::keys): Do not copy on fork.
(pthread_mutex::mutexInitializationLock): Ditto.
(pthreadNull::_instance): Ditto.
2002-09-30 Christopher Faylor <cgf@redhat.com> 2002-09-30 Christopher Faylor <cgf@redhat.com>
* exceptions.cc (unused_sig_wrapper): Still need additional level of * exceptions.cc (unused_sig_wrapper): Still need additional level of

View File

@ -935,7 +935,7 @@ pthread_cond::fixup_after_fork ()
/* pthread_key */ /* pthread_key */
/* static members */ /* static members */
List<pthread_key> pthread_key::keys; List<pthread_key> pthread_key::keys NO_COPY;
void void
pthread_key::saveAKey (pthread_key *key) pthread_key::saveAKey (pthread_key *key)
@ -1097,7 +1097,7 @@ pthread_mutex::isGoodInitializerOrObject (pthread_mutex_t const *mutex)
return true; return true;
} }
pthread_mutex::nativeMutex pthread_mutex::mutexInitializationLock; pthread_mutex::nativeMutex pthread_mutex::mutexInitializationLock NO_COPY;
/* We can only be called once. /* We can only be called once.
TODO: (no rush) use a non copied memory section to TODO: (no rush) use a non copied memory section to
@ -2640,6 +2640,6 @@ pthreadNull::getsequence_np ()
return 0; return 0;
} }
pthreadNull pthreadNull::_instance = pthreadNull (); pthreadNull NO_COPY pthreadNull::_instance;
#endif // MT_SAFE #endif // MT_SAFE