1. 17 7月, 2011 1 次提交
  2. 21 4月, 2011 1 次提交
    • R
      fix minor bugs due to incorrect threaded-predicate semantics · 870cc679
      Rich Felker 提交于
      some functions that should have been testing whether pthread_self()
      had been called and initialized the thread pointer were instead
      testing whether pthread_create() had been called and actually made the
      program "threaded". while it's unlikely any mismatch would occur in
      real-world problems, this could have introduced subtle bugs. now, we
      store the address of the main thread's thread descriptor in the libc
      structure and use its presence as a flag that the thread register is
      initialized. note that after fork, the calling thread (not necessarily
      the original main thread) is the new main thread.
      870cc679
  3. 18 4月, 2011 1 次提交
  4. 13 4月, 2011 1 次提交
    • R
      speed up threaded fork · e2915eee
      Rich Felker 提交于
      after fork, we have a new process and the pid is equal to the tid of
      the new main thread. there is no need to make two separate syscalls to
      obtain the same number.
      e2915eee
  5. 20 3月, 2011 1 次提交
  6. 10 3月, 2011 1 次提交
  7. 19 2月, 2011 1 次提交
    • R
      add pthread_atfork interface · e9417fff
      Rich Felker 提交于
      note that this presently does not handle consistency of the libc's own
      global state during forking. as per POSIX 2008, if the parent process
      was threaded, the child process may only call async-signal-safe
      functions until one of the exec-family functions is called, so the
      current behavior is believed to be conformant even if non-ideal. it
      may be improved at some later time.
      e9417fff
  8. 12 2月, 2011 1 次提交