Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-09-30 19:00:52 +0400
committerChristopher Faylor <me@cgf.cx>2002-09-30 19:00:52 +0400
commite58273df4516edd04315ae8ec89221bb5c9e9173 (patch)
tree8790f4a40be64bd9196cf70368a272756294dd75
parent63e5f2006d84d41892dec4d0c1b53c1999ea1faa (diff)
* thread.cc (pthread_key::keys): Do not copy on fork.
(pthread_mutex::mutexInitializationLock): Ditto. (pthreadNull::_instance): Ditto.
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/thread.cc6
2 files changed, 9 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index bf0c1e740..94d4108d3 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,11 @@
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.
diff --git a/winsup/cygwin/thread.cc b/winsup/cygwin/thread.cc
index 49b8c1b5c..afd9a7ff0 100644
--- a/winsup/cygwin/thread.cc
+++ b/winsup/cygwin/thread.cc
@@ -935,7 +935,7 @@ pthread_cond::fixup_after_fork ()
/* 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)
@@ -1097,7 +1097,7 @@ pthread_mutex::isGoodInitializerOrObject (pthread_mutex_t const *mutex)
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
@@ -2640,6 +2640,6 @@ pthreadNull::getsequence_np ()
return 0;
}
-pthreadNull pthreadNull::_instance = pthreadNull ();
+pthreadNull NO_COPY pthreadNull::_instance;
#endif // MT_SAFE