Differences From Artifact [9d56adf88b]:
- File
src/threading_pthread.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 6182) [annotate] [blame] [check-ins using]
To Artifact [7c690c290a]:
- File
src/threading_pthread.m
— part of check-in
[1494d3f6f1]
at
2017-10-07 10:46:11
on branch trunk
— OFThread: Fix setting the name on the wrong thread
The name of the thread may only be set from the thread itself. So the
thread should read the property on start and set its name. (user: js, size: 6150) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
171 172 173 174 175 176 177 | { pthread_exit(NULL); OF_UNREACHABLE } void | | | | 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | { pthread_exit(NULL); OF_UNREACHABLE } void of_thread_set_name(const char *name) { #if defined(OF_HAIKU) rename_thread(find_thread(NULL), name); #elif defined(HAVE_PTHREAD_SET_NAME_NP) pthread_set_name_np(pthread_self(), name); #elif defined(HAVE_PTHREAD_SETNAME_NP) # if defined(OF_MACOS) || defined(OF_IOS) pthread_setname_np(name); # elif defined(__GLIBC__) char buffer[16]; |
︙ | ︙ |