Thread.h File Reference

Classes

class  DD::Image::Lock
 
class  DD::Image::SignalLock
 
class  DD::Image::ReadWriteLock
 
class  DD::Image::RecursiveLock
 
class  DD::Image::BaseReadWriteGuard
 Base class for Read/Write Guard classes. More...
 
class  DD::Image::ReadGuard
 
class  DD::Image::WriteGuard
 
class  DD::Image::TryWriteGuard
 
class  DD::Image::BaseLockGuard
 
class  DD::Image::Guard
 
class  DD::Image::SpinGuard
 
class  DD::Image::Thread
 

Namespaces

 DD
 Private support functions for OpHints.
 
 DD::Image
 

Typedefs

typedef pthread_t DD::Image::ThreadId
 
typedef SignalLock DD::Image::SlowSignalLock
 

Functions

void DD::Image::SleepMS (int ms)
 
void DD::Image::sleepFor (double seconds)
 
void DD::Image::setThreadGUIMode (bool guiMode)
 Threading needs to know whether the GUI is active for priority settings.
 

Detailed Description

Defines the classes Thread, Lock, and SignalLock. These provide portable wrappers around native thread functions (pthreads on Unix and CriticalRegion and Events on Windows)

Do not include this file if you do not need it. On Windows it includes <windows.h> which causes considerable havoc by polluting the namespace with macros and symbols.



©2021 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk