CopperSpice API  1.7.2
Multithreading

Classes

class  QAtomicInt
 Platform independent atomic operations on integers More...
 
class  QAtomicPointer< T >
 Class template providing platform independent atomic operations on pointers More...
 
class  QFuture< T >
 Result of an asynchronous computation More...
 
class  QFutureSynchronizer< T >
 Convenience class that simplifies QFuture synchronization More...
 
class  QFutureWatcher< T >
 Allows monitoring a QFuture using signals and slots More...
 
class  QMutex
 Access serialization between threads More...
 
class  QMutexLocker
 Convenience class that simplifies locking and unlocking mutexes More...
 
class  QReadLocker
 Convenience class which simplifies locking and unlocking read-write locks for read access More...
 
class  QReadWriteLock
 Read-write locking More...
 
class  QRunnable
 Base class for all runnable objects More...
 
class  QSemaphore
 General counting semaphore More...
 
class  QThread
 Platform-independent way to manage threads More...
 
class  QThreadPool
 Manages a collection of QThreads More...
 
class  QThreadStorage< T >
 Per-thread data storage More...
 
class  QWaitCondition
 Condition variable for synchronizing threads More...
 
class  QWriteLocker
 Convenience class that simplifies locking and unlocking read-write locks for write access More...
 
class  QtConcurrentMap
 Header providing Concurrent Map and MapReduce More...
 
class  QtConcurrentRun
 Header supporting running functions in separate threads More...
 

Detailed Description

CopperSpice provides thread support in the form of platform-independent threading classes, a thread-safe way of posting events, and signal-slot connections across threads. This makes it easy to develop portable multithreaded applications and take advantage of multiprocessor machines. Multithreaded programming is also a useful paradigm for performing time-consuming operations without freezing the user interface of an application.

Threading classes are implemented with native threading APIs such as Win32 and pthreads. They can be used with native threads. Threads are always enabled in CopperSpice.