@@ -42,11 +42,11 @@ unsigned char joinSigBit; bool detached, done; } *OFPlainThread; #endif -typedef struct OFPlainThreadAttributes { +typedef struct { float priority; size_t stackSize; } OFPlainThreadAttributes; #if defined(OF_HAVE_PTHREADS) @@ -73,16 +73,11 @@ { return (thread == GetCurrentThread()); } #elif defined(OF_AMIGAOS) extern OFPlainThread OFCurrentPlainThread(void); - -static OF_INLINE bool -OFPlainThreadIsCurrent(OFPlainThread thread) -{ - return (thread->thread == FindTask(NULL)); -} +extern bool OFPlainThreadIsCurrent(OFPlainThread); #endif #ifdef __cplusplus extern "C" { #endif