summaryrefslogtreecommitdiff
path: root/libthreads
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1998-06-10 19:38:01 +0000
committerThomas Bushnell <thomas@gnu.org>1998-06-10 19:38:01 +0000
commitbf256f7cd36aabc250f2381575f351906b01df05 (patch)
treefbabc018c6dd64ab5bd1823275d6c84da257b2c7 /libthreads
parent01d9ce9cfe7d04c3e5aa2532b1c320ee62e33208 (diff)
Tue Jun 9 13:50:09 1998 Thomas Bushnell, n/BSG <tb@mit.edu>
* cthreads.c (cthread_fork_prepare): Don't call malloc_fork_prepare since we are no longer providing our own malloc in this library. (cthread_fork_parent): Likewise, for malloc_fork_parent. (cthread_fork_child): Likewize, for malloc_fork_child.
Diffstat (limited to 'libthreads')
-rw-r--r--libthreads/ChangeLog8
-rw-r--r--libthreads/cthreads.c10
2 files changed, 15 insertions, 3 deletions
diff --git a/libthreads/ChangeLog b/libthreads/ChangeLog
index 772ec5f0..3de1561c 100644
--- a/libthreads/ChangeLog
+++ b/libthreads/ChangeLog
@@ -1,3 +1,11 @@
+Tue Jun 9 13:50:09 1998 Thomas Bushnell, n/BSG <tb@mit.edu>
+
+ * cthreads.c (cthread_fork_prepare): Don't call
+ malloc_fork_prepare since we are no longer providing our own
+ malloc in this library.
+ (cthread_fork_parent): Likewise, for malloc_fork_parent.
+ (cthread_fork_child): Likewize, for malloc_fork_child.
+
Wed Aug 20 15:39:44 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* cthreads.c (cthread_body): Wire self before calling user work
diff --git a/libthreads/cthreads.c b/libthreads/cthreads.c
index d1ed1ffc..4b55f8b5 100644
--- a/libthreads/cthreads.c
+++ b/libthreads/cthreads.c
@@ -26,6 +26,13 @@
/*
* HISTORY
* $Log: cthreads.c,v $
+ * Revision 1.7 1997/08/20 19:41:20 thomas
+ * Wed Aug 20 15:39:44 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
+ *
+ * * cthreads.c (cthread_body): Wire self before calling user work
+ * function. This way all cthreads will be wired, which the ports
+ * library (and hurd_thread_cancel, etc.) depend on.
+ *
* Revision 1.6 1997/06/10 01:22:19 thomas
* Mon Jun 9 21:18:46 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
*
@@ -415,14 +422,12 @@ cthread_fork_prepare()
{
spin_lock(&free_lock);
mutex_lock(&cthread_lock);
- malloc_fork_prepare();
cproc_fork_prepare();
}
cthread_fork_parent()
{
cproc_fork_parent();
- malloc_fork_parent();
mutex_unlock(&cthread_lock);
spin_unlock(&free_lock);
}
@@ -433,7 +438,6 @@ cthread_fork_child()
cproc_t p;
cproc_fork_child();
- malloc_fork_child();
mutex_unlock(&cthread_lock);
spin_unlock(&free_lock);
condition_init(&cthread_needed);