Differences From Artifact [2ccde6dcec]:
- File src/threading_pthread.m — part of check-in [cfd374b906] at 2015-01-03 20:57:18 on branch trunk — Update copyright (user: js, size: 5018) [annotate] [blame] [check-ins using]
To Artifact [7f18dc085f]:
- File
src/threading_pthread.m
— part of check-in
[ffb39d1df6]
at
2015-03-30 21:33:29
on branch trunk
— Add OF_NO_RETURN_FUNC
OF_NO_RETURN_FUNC is defined when __attribute__((__noreturn__)) is
supported for functions, whereas OF_NO_RETURN is only defined when it is
supported for both functions and methods. (user: js, size: 5023) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
146 147 148 149 150 151 152 | bool of_thread_detach(of_thread_t thread) { return (pthread_detach(thread) == 0); } | | | 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | bool of_thread_detach(of_thread_t thread) { return (pthread_detach(thread) == 0); } void OF_NO_RETURN_FUNC of_thread_exit(void) { pthread_exit(NULL); OF_UNREACHABLE } |
︙ | ︙ |