Home
last modified time | relevance | path

Searched hist:b24cc7ca759c8ff6d82f4862f57a0483800e60be (Results 1 – 1 of 1) sorted by relevance

/haiku/headers/posix/
H A Dpthread.hb24cc7ca759c8ff6d82f4862f57a0483800e60be Tue Jun 06 19:29:05 UTC 2023 Augustin Cavalier <waddlesplash@gmail.com> pthread: Use 1 for PTHREAD_BARRIER_SERIAL_THREAD.

pthread_barrier_wait can return errors, which on Haiku are negative
and so -1 is an error condition, it should not be reused for a magic
constant.

This breaks ABI. However, until the recent fixes, barriers were so broken
that I doubt any application was using them seriously (Mesa, for instance,
has them disabled.)

Change-Id: Ica23921de012a33e9e7aded816bb1347bd157b31
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6517
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: X512 <danger_mail@list.ru>