30 |
* catch is reserved word in c++. |
* catch is reserved word in c++. |
31 |
* |
* |
32 |
* $Log$ |
* $Log$ |
33 |
|
* Revision 1.13 2002/05/28 23:55:55 roland |
34 |
|
* 2002-05-28 Roland McGrath <roland@frob.com> |
35 |
|
* |
36 |
|
* * cthreads.c (cthread_fork_prepare, cthread_fork_parent, |
37 |
|
* cthread_fork_child): Don't call malloc_fork_* (lost in merge). |
38 |
|
* |
39 |
* Revision 1.12 2002/05/27 02:50:10 roland |
* Revision 1.12 2002/05/27 02:50:10 roland |
40 |
* 2002-05-26 Roland McGrath <roland@frob.com> |
* 2002-05-26 Roland McGrath <roland@frob.com> |
41 |
* |
* |
417 |
{ |
{ |
418 |
spin_lock(&free_lock); |
spin_lock(&free_lock); |
419 |
mutex_lock(&cthread_lock); |
mutex_lock(&cthread_lock); |
|
malloc_fork_prepare(); |
|
420 |
cproc_fork_prepare(); |
cproc_fork_prepare(); |
421 |
} |
} |
422 |
|
|
424 |
cthread_fork_parent(void) |
cthread_fork_parent(void) |
425 |
{ |
{ |
426 |
cproc_fork_parent(); |
cproc_fork_parent(); |
|
malloc_fork_parent(); |
|
427 |
mutex_unlock(&cthread_lock); |
mutex_unlock(&cthread_lock); |
428 |
spin_unlock(&free_lock); |
spin_unlock(&free_lock); |
429 |
} |
} |
434 |
cthread_t t; |
cthread_t t; |
435 |
cproc_t p; |
cproc_t p; |
436 |
|
|
|
malloc_fork_child(); |
|
437 |
cproc_fork_child(); |
cproc_fork_child(); |
438 |
mutex_unlock(&cthread_lock); |
mutex_unlock(&cthread_lock); |
439 |
spin_unlock(&free_lock); |
spin_unlock(&free_lock); |