Removed some type definitions from ktypes.h that are now located in OS.h.
Changed lock.h to like those changes. Moved the create_sem_etc() from the public OS.h to the private kernel only sem.h, cleaned it up a bit. gcc doesn't seem to like the "extern inlines" with -O0 -g, so I replaced an inline function in thread.h with "static inline" (which it does always like). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1376 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -51,11 +51,15 @@ struct thread *thread_get_thread_struct(thread_id id);
|
||||
#ifdef NEW_SCHEDULER
|
||||
struct thread *thread_get_thread_struct_locked(thread_id id);
|
||||
#endif /* NEW_SCHEDULER */
|
||||
thread_id thread_get_current_thread_id(void);
|
||||
|
||||
extern inline thread_id thread_get_current_thread_id(void) {
|
||||
struct thread *t = thread_get_current_thread(); return t ? t->id : 0;
|
||||
static thread_id thread_get_current_thread_id(void);
|
||||
static inline thread_id
|
||||
thread_get_current_thread_id(void)
|
||||
{
|
||||
struct thread *t = thread_get_current_thread();
|
||||
return t ? t->id : 0;
|
||||
}
|
||||
|
||||
int thread_wait_on_thread(thread_id id, int *retcode);
|
||||
|
||||
thread_id thread_create_user_thread(char *name, team_id tid, addr entry, void *args);
|
||||
|
||||
Reference in New Issue
Block a user