mirror of
https://github.com/reactos/CMake.git
synced 2024-12-12 13:56:00 +00:00
Merge topic 'FindThreads-tsan'
b328cbaadb
FindThreads: Add pthread_cancel to program to test for pthreads in libc
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Rolf Eike Beer <eike@sf-mail.de>
Merge-request: !4056
This commit is contained in:
commit
bd855ffb55
@ -63,6 +63,7 @@ int main(void)
|
||||
pthread_t thread;
|
||||
pthread_create(&thread, NULL, test_func, NULL);
|
||||
pthread_detach(thread);
|
||||
pthread_cancel(thread);
|
||||
pthread_join(thread, NULL);
|
||||
pthread_atfork(NULL, NULL, NULL);
|
||||
pthread_exit(NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user