Documentation

MKObjectPipe class documentation

MKObjectPipe : NSObject

AuthorsGenerated by builder
Declared inMKObjectPipe.h

Overview

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.


Default

- (void) sendRequest: (id)anObject

Insert anObject into the ring buffer as a request.

    - (id) nextRequest

    Retrieve the next request from the ring buffer.

      - (void) sendReply: (id)anObject

      Insert a reply into the ring buffer.

        - (id) nextReply

        Retrieve the next reply from the buffer.