cvs commit: src/lib/libpthread/thread thr_kern.c

Peter Edwards peadar at FreeBSD.org
Mon Dec 18 09:08:08 PST 2006


peadar      2006-12-18 17:08:07 UTC

  FreeBSD src repository

  Modified files:
    lib/libpthread/thread thr_kern.c 
  Log:
  Clean bound and non-bound pthread structures consistently before
  they become candidates for reuse.  Without this fix, some of the
  state from a thread structure's previous incarnation could interfere
  with its new one. Specifically, a non-bound thread started as
  "suspended" (see pthread_attr_setcreatesuspend_np()) might not get
  scheduled at all when resumed, as the "active" flag would be set
  spuriously.
  
  Reviewed by: deischen@, davidxu@
  MFC after: 1 week
  
  Revision  Changes    Path
  1.122     +5 -4      src/lib/libpthread/thread/thr_kern.c


More information about the cvs-all mailing list