Lynkeos
|
Connection endpoint. More...
Instance Methods | |
(id) | - initWithPort:queueSize: |
Dedicated initializer. More... | |
(void) | - adjustMessageCount: |
Change the number of pending messages in the connection. More... | |
Public Attributes | |
NSPort * | _port |
This end mach port. | |
MyThreadCnxQueue * | _queue |
Second level queue. | |
ThreadCnxState_t | _state |
The current cnx end state. | |
NSLock * | _countLock |
To protect the counters. | |
int | _messageCount |
Number of pending messages. | |
Connection endpoint.
- (void) adjustMessageCount: | (int) | n |
Change the number of pending messages in the connection.
n | The number of messages to add (can be negative) |
References _countLock, and _messageCount.
Referenced by LynkeosThreadConnection(Private)::handlePortMessage:, LynkeosThreadConnection(Private)::handleQueue:, and LynkeosThreadConnection(QueueMgt)::sendInvocation:inThread:.
- (id) initWithPort: | (NSPort*) | port | |
queueSize: | (int) | queueSize | |
Dedicated initializer.
port | This endpoint mach port |
queueSize | Second level queue size (can be 0) |
References _countLock, _messageCount, _port, _queue, and _state.