* Added a wait_for_thread_etc() function that allows specifying semaphore flags

and a timeout.
* _user_wait_for_thread() was not interruptible before, ie. Control-C wouldn't
  work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16654 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-03-08 16:41:03 +00:00
parent f8f104b2e1
commit 33a9adb376
2 changed files with 68 additions and 62 deletions
+2
View File
@@ -61,6 +61,8 @@ thread_id peek_next_thread_id(void);
thread_id spawn_kernel_thread_etc(thread_func, const char *name, int32 priority,
void *args, team_id team, thread_id threadID);
status_t wait_for_thread_etc(thread_id id, uint32 flags, bigtime_t timeout,
status_t *_returnCode);
// used in syscalls.c
status_t _user_set_thread_priority(thread_id thread, int32 newPriority);