/[hurd]/hurd/libthreads/cthreads.c
ViewVC logotype

Diff of /hurd/libthreads/cthreads.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12 by roland, Mon May 27 02:50:10 2002 UTC revision 1.13 by roland, Tue May 28 23:55:55 2002 UTC
# Line 30  Line 30 
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   *   *
# Line 411  cthread_fork_prepare(void) Line 417  cthread_fork_prepare(void)
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    
# Line 419  void Line 424  void
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  }  }
# Line 430  cthread_fork_child(void) Line 434  cthread_fork_child(void)
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);

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26