Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Dec 2003 00:16:17 -0800 (PST)
From:      Mike Makonnen <mtm@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libthr/thread thr_create.c thr_init.c thr_private.h
Message-ID:  <200312260816.hBQ8GHsc061404@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312260816.hBQ8GHsc061404>