PIP 5.6.1
Platform-Independent Primitives
Classes | Typedefs
pithread.h File Reference

Runtime thread object with optional loop execution. More...

#include "piinit.h"
#include "pimutex.h"
#include "piobject.h"
#include "pithreadnotifier.h"

Classes

class  PIThread
 Thread object that executes work on a dedicated system thread. More...
 

Typedefs

typedef std::function< void(void *)> ThreadFunc
 Callback executed by PIThread with the current data() pointer.
 

Detailed Description

Runtime thread object with optional loop execution.

PIThread runs begin(), run() and end() on a dedicated system thread. In loop mode it also drains queued delivery addressed to the thread object as performer through maybeCallQueuedEvents() before each iteration.