X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Fthread.h;h=248f1d4539663dfa843ef0e5aac9d6ece28c5842;hb=7dee069f7ce631237d23f28210f1cd299abadcfd;hp=d6a3990f1047d795b4255efa278af5f1a1119e32;hpb=f2f8875638593bd5365cfd6a5ba7c9578e52322f;p=pintos-anon diff --git a/src/threads/thread.h b/src/threads/thread.h index d6a3990..248f1d4 100644 --- a/src/threads/thread.h +++ b/src/threads/thread.h @@ -1,5 +1,5 @@ -#ifndef HEADER_THREAD_H -#define HEADER_THREAD_H 1 +#ifndef THREADS_THREAD_H +#define THREADS_THREAD_H #include #include @@ -108,4 +108,8 @@ void thread_exit (void) NO_RETURN; void thread_yield (void); void thread_block (void); -#endif /* thread.h */ +void thread_join (struct thread *); +void thread_set_priority (struct thread *, int); +int thread_get_priority (const struct thread *); + +#endif /* threads/thread.h */