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:
Axel Dörfler
2002-10-05 01:17:28 +00:00
parent 1522bbc771
commit e96a844909
4 changed files with 15 additions and 16 deletions
+7 -3
View File
@@ -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);