Differences From Artifact [bf84b7cea6]:
- File src/thread.h — part of check-in [ac004e624d] at 2020-10-10 21:54:38 on branch trunk — More type cleanups (user: js, size: 2189) [annotate] [blame] [check-ins using] [more...]
To Artifact [821c6c8243]:
- File
src/thread.h
— part of check-in
[5b37fbeb82]
at
2020-12-20 21:26:08
on branch trunk
— Return error instead of using errno for threading
errno is problematic for Amiga libraries and is also not thread-safe on
some systems, even though it should. (user: js, size: 2185) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
61 62 63 64 65 66 67 | # define of_thread_is_current(t) (t->thread == FindTask(NULL)) extern of_thread_t of_thread_current(void); #endif #ifdef __cplusplus extern "C" { #endif | | | | | | 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | # define of_thread_is_current(t) (t->thread == FindTask(NULL)) extern of_thread_t of_thread_current(void); #endif #ifdef __cplusplus extern "C" { #endif extern int of_thread_attr_init(of_thread_attr_t *attr); extern int of_thread_new(of_thread_t *thread, const char *name, void (*function)(id), id object, const of_thread_attr_t *attr); extern void of_thread_set_name(const char *name); extern int of_thread_join(of_thread_t thread); extern int of_thread_detach(of_thread_t thread); #ifdef __cplusplus } #endif |