aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/pthread/tst-mtx-recursive.c
AgeCommit message (Collapse)AuthorFilesLines
2020-09-07C11 threads: Fix inaccuracies in testsuiteCorinna Vinschen1-1/+1
- tst-mtx-recursive.c: mtx_init fails to use mtx_plain. Per C11 specs, using mtx_recursive alone is not supported. This isn't catched because mtx_plain is defined as 0. - tst-thrd-sleep.c: thrd_sleep returns 0 on success, a negative value on failure. Testing against thrd_success is incorrect. - tst-tss-basic.c: tss_set is incorrectly checkd for a non-0 value. The test should test aginst C11 threads error codes. This isn't catched because thrd_success is defined as 0. Note that all three tests fail on FreeBSD, which defines all mutex type values, as well as all C11 threads error codes with non-0 values.
2020-02-09C11 threads: Move implementation to sysdeps/pthreadSamuel Thibault1-0/+45
so it gets shared by nptl and htl. Also add htl versions of thrd_current and thrd_yield. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>