summaryrefslogtreecommitdiff
path: root/libthreads
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1997-04-04 01:30:35 +0000
committerThomas Bushnell <thomas@gnu.org>1997-04-04 01:30:35 +0000
commit188fc5f11eb6ba1357ccf00bf93496ad3e257aeb (patch)
treeedfbdf132ebc974be343833dba829abcd145bf73 /libthreads
parent4355d388f51fdda4ff68935561cbe814b0f8d820 (diff)
*** empty log message ***
Diffstat (limited to 'libthreads')
-rw-r--r--libthreads/ChangeLog4
-rw-r--r--libthreads/cthreads.c10
2 files changed, 13 insertions, 1 deletions
diff --git a/libthreads/ChangeLog b/libthreads/ChangeLog
index b5db4ea3..bbf93298 100644
--- a/libthreads/ChangeLog
+++ b/libthreads/ChangeLog
@@ -1,3 +1,7 @@
+Thu Apr 3 20:29:27 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
+
+ * i386/csw.S: Define __ELF__ too.
+
Wed Feb 19 23:29:55 1997 Miles Bader <miles@gnu.ai.mit.edu>
* stack.c (__hurd_threadvar_stack_mask,
diff --git a/libthreads/cthreads.c b/libthreads/cthreads.c
index d45a02b4..4d560972 100644
--- a/libthreads/cthreads.c
+++ b/libthreads/cthreads.c
@@ -25,7 +25,10 @@
*/
/*
* HISTORY
- * $Log: cthreads.c,v $
+ * $Log: cthreads.c,v $
+ * Revision 1.4 1994/05/05 18:13:57 roland
+ * entered into RCS
+ *
* Revision 2.11 92/07/20 13:33:37 cmaeda
* In cthread_init, do machine dependent initialization if it's defined.
* [92/05/11 14:41:08 cmaeda]
@@ -292,16 +295,21 @@ cthread_fork(func, arg)
{
register cthread_t t;
+ printf ("cf1\n");
+
TRACE(printf("[%s] fork()\n", cthread_name(cthread_self())));
mutex_lock(&cthread_lock);
t = cthread_alloc(func, arg);
+ printf ("cf2\n");
cthread_queue_enq(&cthreads, t);
if (++cthread_cthreads > cthread_cprocs && (cthread_max_cprocs == 0 || cthread_cprocs < cthread_max_cprocs)) {
cthread_cprocs += 1;
cproc_create();
}
+ printf ("cf3\n");
mutex_unlock(&cthread_lock);
condition_signal(&cthread_needed);
+ printf ("cf4\n");
return t;
}