summaryrefslogtreecommitdiff
path: root/libthreads/cthreads.c
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/cthreads.c
parent4355d388f51fdda4ff68935561cbe814b0f8d820 (diff)
*** empty log message ***
Diffstat (limited to 'libthreads/cthreads.c')
-rw-r--r--libthreads/cthreads.c10
1 files changed, 9 insertions, 1 deletions
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;
}