summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_mattr_init.c
diff options
context:
space:
mode:
authorpeadar <peadar@FreeBSD.org>2006-12-18 17:08:07 +0000
committerpeadar <peadar@FreeBSD.org>2006-12-18 17:08:07 +0000
commite3b0678e20f86a88c1169dc2c9b44658eb2a1e99 (patch)
tree740e6b1372b7d2d7072cb29a4756a0cbacd3bc70 /lib/libpthread/thread/thr_mattr_init.c
parentd09381af38eb06f88b9e25758d7d6af2c8ea358b (diff)
downloadFreeBSD-src-e3b0678e20f86a88c1169dc2c9b44658eb2a1e99.zip
FreeBSD-src-e3b0678e20f86a88c1169dc2c9b44658eb2a1e99.tar.gz
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
Diffstat (limited to 'lib/libpthread/thread/thr_mattr_init.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud