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>2001-04-13 19:28:20 +0400
committerChristopher Faylor <me@cgf.cx>2001-04-13 19:28:20 +0400
commit39b6859a28b8b50d73fe6ae080ea42f4ef1bdea3 (patch)
tree6e6cc0afd7868c2a935f16c4e10a3d20ebf532b3 /winsup/cygwin/pthread.cc
parente61cead397205b61dafed0d725cf9dcd89aead76 (diff)
* fork.cc (fork_child): Call the __pthread_atforkchild function.
(fork_parent): Call the __pthread_atforkparent function. * cygwin.din: Export pthread_atfork. * thread.h (callback): New class. (MTinterface): Use it. * thread.cc (__pthread_atforkprepare): New function. (__pthread_atforkparent): New function. (__pthread_atforkchild): New function. (__pthread_atfork): New function. * pthread.cc (pthread_atfork): New function.
Diffstat (limited to 'winsup/cygwin/pthread.cc')
-rw-r--r--winsup/cygwin/pthread.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/pthread.cc b/winsup/cygwin/pthread.cc
index c9f0bb2bf..74cce7c23 100644
--- a/winsup/cygwin/pthread.cc
+++ b/winsup/cygwin/pthread.cc
@@ -30,6 +30,12 @@ pthread_once (pthread_once_t * once_control, void (*init_routine) (void))
}
int
+pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void))
+{
+ return __pthread_atfork(prepare, parent, child);
+}
+
+int
pthread_attr_init (pthread_attr_t * attr)
{
return __pthread_attr_init (attr);