Differences From Artifact [44065a1e75]:
- File src/threading.h — part of check-in [510158d026] at 2017-05-16 22:58:27 on branch trunk — threading.h: Remove unconditional sched.h include (user: js, size: 6306) [annotate] [blame] [check-ins using]
To Artifact [46db014c33]:
- File
src/threading.h
— 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: 6286) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
96 97 98 99 100 101 102 | # error of_thread_is_current not implemented! # error of_thread_current not implemented! #endif extern bool of_thread_attr_init(of_thread_attr_t *attr); extern bool of_thread_new(of_thread_t *thread, void (*function)(id), id object, const of_thread_attr_t *attr); | | | 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | # error of_thread_is_current not implemented! # error of_thread_current not implemented! #endif extern bool of_thread_attr_init(of_thread_attr_t *attr); extern bool of_thread_new(of_thread_t *thread, void (*function)(id), id object, const of_thread_attr_t *attr); extern void of_thread_set_name(const char *name); extern bool of_thread_join(of_thread_t thread); extern bool of_thread_detach(of_thread_t thread); extern void OF_NO_RETURN_FUNC of_thread_exit(void); extern void of_once(of_once_t *control, void (*func)(void)); extern bool of_tlskey_new(of_tlskey_t *key); extern bool of_tlskey_free(of_tlskey_t key); extern bool of_mutex_new(of_mutex_t *mutex); |
︙ | ︙ |