summaryrefslogtreecommitdiff
path: root/libthreads
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-07-31 02:35:14 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-07-31 02:35:14 +0000
commit36d5868898ecfc6337b7f6a5f49439c4106d9c67 (patch)
treee07c0cd1b2d59404106a87e443b7cd7e614c1e18 /libthreads
parentc612109d24d1f503ca37b77300820184aef775ca (diff)
Add comment to last change, for the benefit of the next merge :)
Diffstat (limited to 'libthreads')
-rw-r--r--libthreads/cthreads.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libthreads/cthreads.c b/libthreads/cthreads.c
index a68b7ee6..38c65665 100644
--- a/libthreads/cthreads.c
+++ b/libthreads/cthreads.c
@@ -30,6 +30,12 @@
* catch is reserved word in c++.
*
* $Log: cthreads.c,v $
+ * Revision 1.14 2002/07/31 02:20:44 marcus
+ * 2002-07-29 Marcus Brinkmann <marcus@gnu.org>
+ *
+ * * cthreads.c (cthread_init): Move cthread_alloc call before
+ * cproc_init call (lost in merge).
+ *
* Revision 1.13 2002/05/28 23:55:55 roland
* 2002-05-28 Roland McGrath <roland@frob.com>
*
@@ -217,6 +223,10 @@ cthread_init(void)
if (cthreads_started)
return 0;
+
+ /* cthread_alloc must be called before cproc_init, because
+ malloc is not usable between initializing the new stack and
+ switching to it. */
t = cthread_alloc((cthread_fn_t) 0, (any_t) 0);
stack = cproc_init();
cthread_cprocs = 1;