hrev47000 adds 1 changeset to branch 'master' old head: 0012ba6a87f1286164160b6d14516e4bad0f63c3 new head: ba5172cccb57a5125ee1e63fb5f1b56c38e7474c overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=ba5172c+%5E0012ba6 ---------------------------------------------------------------------------- ba5172c: pthread: allow NULL thread to compare equal. - POSIX says the behavior for pthread_equal is undefined for uninitialized arguments. - However, gcc C++11 threads supports expects C++-compatible behavior, that is, two uninitialized pthread_t should compare equal. Avoids some runtime asserts in latest WebKit version. [ Adrien Destugues <pulkomandy@xxxxxxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev47000 Commit: ba5172cccb57a5125ee1e63fb5f1b56c38e7474c URL: http://cgit.haiku-os.org/haiku/commit/?id=ba5172c Author: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx> Date: Sun Mar 9 21:26:36 2014 UTC ---------------------------------------------------------------------------- 1 file changed, 1 insertion(+), 1 deletion(-) src/system/libroot/posix/pthread/pthread.cpp | 2 +- ---------------------------------------------------------------------------- diff --git a/src/system/libroot/posix/pthread/pthread.cpp b/src/system/libroot/posix/pthread/pthread.cpp index 6c441e1..ef708b9 100644 --- a/src/system/libroot/posix/pthread/pthread.cpp +++ b/src/system/libroot/posix/pthread/pthread.cpp @@ -181,7 +181,7 @@ pthread_self(void) int pthread_equal(pthread_t t1, pthread_t t2) { - return t1 != NULL && t2 != NULL && t1 == t2; + return t1 == t2; }