Differences From Artifact [fb1fdd6d5c]:
- File src/threading.m — part of check-in [1da2e596af] at 2014-07-18 10:47:36 on branch trunk — Split threading.h into threading.m and threading.h (user: js, size: 7952) [annotate] [blame] [check-ins using]
To Artifact [5edf77ca14]:
- File
src/threading.m
— part of check-in
[716b1fc2b3]
at
2014-07-19 09:55:06
on branch trunk
— Don't use C11's noreturn
It causes just too much trouble: It breaks with some old versions of
Clang, where noreturn does not work correctly, and OS X headers break if
noreturn is defined, requiring an ugly and fragile workaround. It's just
not worth the trouble it causes, as the same functionality is available
through __attribute__((__noreturn__)). (user: js, size: 7956) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
67 68 69 70 71 72 73 | /* FIXME */ return true; #else # error of_thread_detach not implemented! #endif } | | | 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | /* FIXME */ return true; #else # error of_thread_detach not implemented! #endif } void OF_NO_RETURN of_thread_exit(void) { #if defined(OF_HAVE_PTHREADS) pthread_exit(NULL); #elif defined(_WIN32) ExitThread(0); #else |
︙ | ︙ |