Differences From Artifact [b5d0945c6a]:
- File
src/threading_winapi.m
— part of check-in
[52e02c06ca]
at
2014-08-01 12:27:29
on branch trunk
— Change return type for thread main
This changes the return type to void, as the return type of a thread's
main depends on the threading implementation used. For pthreads, it adds
a wrapper function which returns NULL to avoid problems with bogus
return values. For WinAPI threads, the function is just casted, as bogus
return values don't seem to matter there. (user: js, size: 3783) [annotate] [blame] [check-ins using]
To Artifact [68869a7c20]:
- File src/threading_winapi.m — part of check-in [39f5e20201] at 2014-08-11 18:44:53 on branch trunk — threading_pthread.m: Set thread name (user: js, size: 3850) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
74 75 76 77 78 79 80 81 82 83 84 85 86 87 | void OF_NO_RETURN of_thread_exit(void) { ExitThread(0); OF_UNREACHABLE } void of_once(of_once_t *control, void (*func)(void)) { switch (InterlockedCompareExchange(control, 1, 0)) { case 0: func(); | > > > > > | 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | void OF_NO_RETURN of_thread_exit(void) { ExitThread(0); OF_UNREACHABLE } void of_thread_set_name(of_thread_t thread, const char *name) { } void of_once(of_once_t *control, void (*func)(void)) { switch (InterlockedCompareExchange(control, 1, 0)) { case 0: func(); |
︙ | ︙ |