29 #ifndef JUCE_THREAD_H_INCLUDED 30 #define JUCE_THREAD_H_INCLUDED 77 virtual void run() = 0;
98 void startThread (
int priority);
120 bool stopThread (
int timeOutMilliseconds);
124 bool isThreadRunning()
const;
138 void signalThreadShouldExit();
157 bool waitForThreadToExit (
int timeOutMilliseconds)
const;
166 bool setPriority (
int priority);
175 static bool setCurrentThreadPriority (
int priority);
185 void setAffinityMask (
uint32 affinityMask);
210 bool wait (
int timeOutMilliseconds)
const;
268 void*
volatile threadHandle;
274 bool volatile shouldExit;
281 void closeThreadHandle();
283 void threadEntryPoint();
284 static bool setThreadPriority (
void*,
int);
289 #endif // JUCE_THREAD_H_INCLUDED void * ThreadID
Definition: juce_Thread.h:224
#define noexcept
Definition: juce_CompilerSupport.h:141
bool threadShouldExit() const
Definition: juce_Thread.h:147
Definition: juce_String.h:43
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_CriticalSection.h:47
void JUCE_API juce_threadEntryPoint(void *userData)
Definition: juce_core.cpp:112
unsigned int uint32
Definition: juce_MathsFunctions.h:51
ThreadID getThreadId() const noexcept
Definition: juce_Thread.h:251
Definition: juce_WaitableEvent.h:41
const String & getThreadName() const
Definition: juce_Thread.h:257
Definition: juce_Thread.h:47