+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):
threadcount = 1; /* 1 current thread when Init occurs.*/
pthread::initMainThread (&mainthread, myself->hProcess);
- pthread_mutex::initMutex ();
+ pthread_mutex::initMutex ();
if (forked)
return;
/* 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)
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.
return 0;
}
-pthreadNull NO_COPY pthreadNull::_instance;
+pthreadNull pthreadNull::_instance;
#endif // MT_SAFE