(pthread_mutex::mutexInitializationLock): Ditto.
(pthreadNull::_instance): Ditto.
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>
+
* exceptions.cc (unused_sig_wrapper): Still need additional level of
indirection when setting errno.
/* pthread_key */
/* static members */
-List<pthread_key> pthread_key::keys;
+List<pthread_key> pthread_key::keys NO_COPY;
void
pthread_key::saveAKey (pthread_key *key)
return true;
}
-pthread_mutex::nativeMutex pthread_mutex::mutexInitializationLock;
+pthread_mutex::nativeMutex pthread_mutex::mutexInitializationLock NO_COPY;
/* We can only be called once.
TODO: (no rush) use a non copied memory section to
return 0;
}
-pthreadNull pthreadNull::_instance = pthreadNull ();
+pthreadNull NO_COPY pthreadNull::_instance;
#endif // MT_SAFE