cvs commit: src/lib/libthr/thread thr_create.c thr_init.c thr_private.h

Mike Makonnen mtm at FreeBSD.org
Fri Dec 26 00:16:19 PST 2003


mtm         2003/12/26 00:16:17 PST

  FreeBSD src repository

  Modified files:
    lib/libthr/thread    thr_create.c thr_init.c thr_private.h 
  Log:
  Preparations to make libthr work in multi-threaded fork()ing applications.
  
  o Remove some code duplication between _thread_init(), which is run once
    to initialize libthr and the intitial thread, and pthread_create(), which
    initializes newly created threads, into a new function called from both
    places: init_td_common()
  o Move initialization of certain parts of libthr into a separate
    function. These include:
          - Active threads list and it's lock
          - Dead threads list and it's lock & condition variable
          - Naming and insertion of the initial thread into the
            active threads list.
  
  Revision  Changes    Path
  1.12      +1 -24     src/lib/libthr/thread/thr_create.c
  1.11      +78 -39    src/lib/libthr/thread/thr_init.c
  1.27      +2 -0      src/lib/libthr/thread/thr_private.h


More information about the cvs-src mailing list