Change interface for getting and setting current thread

This commit is contained in:
thomas committed 2018-03-21 23:12:43 +01:00
1 parent c26434f814
commit 1fca5af522
2 files changed
+14 -8

No files matched your search

-4
View File
@@ -28,10 +28,6 @@ struct thread
struct tcb tcb;
}__attribute__((packed));
struct thread *current_thread;
#define GET_CURRENT_THREAD() (current_thread)
#define SET_CURRENT_THREAD(thread) current_thread = (thread)
struct thread *new_thread(void (*function)(void));
void yield();
int get_tid();