- Declared in:
- MKObjectPipe.h
The MKObjectPipe class encapsulates a connection between two filters.
Conceptually, the pipe provides an asynchronous request-response mechanism between two threads. The pipe is partially thread-safe. Each end must only be held by one thread, unless protected externally by a lock. One end sends requests and receives replies, the other receives requests and sends replies.
Every request must have corresponding reply sent,
although this may be nil. The
intended use for this is to allow a small set of
buffers to be recycled between a cooperating pair
of filters.
Condition variable used to signal a transition from locked to lockless mode.
Flag used to interrupt the object in locked mode
Mutex used to protect the condition variable.
The ring buffer.
Consumer free-running counter.
Producer free-running counter.