X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fthreads%2Fposix%2Fthread-posix.h;h=1431bc2ddeb8a6ce93f9f0f190fb3ce8d1393383;hb=f4bb527c369e39a07b94eb88fddfa6e1642eda6a;hp=99e6cb092470d944f8afcb8b416f94e5855ba6bf;hpb=fd455c1aec26f2f213788e60710368c7a1b3652e;p=cacao.git diff --git a/src/threads/posix/thread-posix.h b/src/threads/posix/thread-posix.h index 99e6cb092..1431bc2dd 100644 --- a/src/threads/posix/thread-posix.h +++ b/src/threads/posix/thread-posix.h @@ -77,14 +77,12 @@ typedef struct { #if defined(HAVE___THREAD) -#define THREADSPECIFIC __thread #define THREADOBJECT thread_current extern __thread threadobject *thread_current; #else /* defined(HAVE___THREAD) */ -#define THREADSPECIFIC #define THREADOBJECT \ ((threadobject *) pthread_getspecific(thread_current_key)) @@ -140,7 +138,6 @@ struct threadobject { bool interrupted; bool signaled; - bool sleeping; bool suspended; /* is this thread suspended? */ s4 suspend_reason; /* reason for suspending */ @@ -275,9 +272,11 @@ void threads_set_thread_priority(pthread_t tid, int priority); bool threads_detach_thread(threadobject *thread); +#if defined(ENABLE_GC_CACAO) bool threads_suspend_thread(threadobject *thread, s4 reason); void threads_suspend_ack(u1* pc, u1* sp); bool threads_resume_thread(threadobject *thread); +#endif void threads_join_all_threads(void); @@ -287,11 +286,6 @@ void threads_wait_with_timeout_relative(threadobject *t, s8 millis, s4 nanos); void threads_thread_interrupt(threadobject *thread); -#if !defined(DISABLE_GC) -void threads_stopworld(void); -void threads_startworld(void); -#endif - #endif /* _THREAD_POSIX_H */