Files
semi-libc/src/thread
Rich Felker 80bf595255 trap UB from attempts to join a detached thread
passing to pthread_join the id of a thread which is not joinable
results in undefined behavior.

in principle the check to trap does not necessarily work if
pthread_detach was called after thread creation, since no effort is
made here to synchronize access to t->detached, but the check is
well-defined and harmless for callers which did not invoke UB, and
likely to help catch erroneous code that would otherwise mysteriously
hang.

patch by William Pitcock.
2017-08-11 20:42:30 -04:00
..
2016-03-06 17:41:56 +00:00
2016-05-08 22:57:40 -04:00
2016-11-11 23:06:21 -05:00
2017-07-04 17:12:52 -04:00
2014-09-06 22:07:22 -04:00
2014-09-06 22:07:22 -04:00
2014-09-06 22:07:22 -04:00
2014-09-06 22:07:22 -04:00
2014-09-06 22:07:22 -04:00
2014-09-06 22:07:22 -04:00
2016-10-20 01:48:27 -04:00
2011-03-04 00:45:59 -05:00
2011-03-04 00:45:59 -05:00
2011-03-04 00:45:59 -05:00
2011-04-17 11:43:03 -04:00