Differences From Artifact [7cf05d0077]:
- File
src/threading.h
— 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: 6448) [annotate] [blame] [check-ins using]
To Artifact [a8b345125c]:
- File
src/threading.h
— part of check-in
[be99da0c09]
at
2014-10-04 19:24:47
on branch trunk
— threading: WinAPI's CriticalSection is recursive
No need to manually implement recursiveness for WinAPI. (user: js, size: 6473) [annotate] [blame] [check-ins using]
︙ | |||
67 68 69 70 71 72 73 | 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | - + | typedef of_mutex_t of_spinlock_t; #endif #ifdef OF_HAVE_SCHED_YIELD # include <sched.h> #endif |
︙ |