wait_for_thread_etc: expose as syscall/make public.

* This will be needed for the following commit that implements
  `pthread_tryjoin_np` and `pthread_timedjoin_np`.

Change-Id: Idccb1aa588d6d10825294d14925d9bd046b65f19
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5098
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Jessica Hamilton
2022-04-25 19:47:26 +00:00
committed by waddlesplash
parent f123acc1d9
commit 914b10c17e
7 changed files with 37 additions and 2 deletions
+2
View File
@@ -167,6 +167,8 @@ extern status_t _kern_cancel_thread(thread_id threadID,
extern void _kern_thread_yield(void);
extern status_t _kern_wait_for_thread(thread_id thread,
status_t *_returnCode);
extern status_t _kern_wait_for_thread_etc(thread_id thread, uint32 flags,
bigtime_t timeout, status_t *_returnCode);
extern bool _kern_has_data(thread_id thread);
extern status_t _kern_send_data(thread_id thread, int32 code,
const void *buffer, size_t bufferSize);