PTypes: multithreading

Top: Multithreading

- ##### thread

- ##### semaphore & timedsem

- ##### mutex

- ##### rwlock

- ##### trigger

- ##### msgqueue

- ##### jobqueue

- ##### message

- ##### Atomic functions, utilities

- ##### Examples

PTypes provides a minimal set of utility objects for creating complex multithreaded and event-driven applications. In addition to threads and inter-thread synchronization primitives semaphore, mutex, rwlock and trigger the library also allows you to create message queues (msgqueue) typically used in windowed or other event-driven environments. The jobqueue class helps to build multithreaded server and robot applications with a pool of reusable thread objects.

The implementation and interfaces of threads and synchronization objects vary on platforms supported by the library. If an operating system lacks one of the features, PTypes implements it using the other primitives present in that OS. Please, see <pasync.h> for the implementation cross-reference of the synchronization primitives.

These interfaces except the atomic functions are available only in multithreaded versions of the library.

The multithreading classes are declared in <pasync.h>.

PTypes home