Lynkeos
Instance Methods | Public Attributes | List of all members
LynkeosThreadCnxEnd Class Reference

Connection endpoint. More...

Inheritance diagram for LynkeosThreadCnxEnd:
Inheritance graph
[legend]
Collaboration diagram for LynkeosThreadCnxEnd:
Collaboration graph
[legend]

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.
 

Detailed Description

Connection endpoint.

Method Documentation

- (void) adjustMessageCount: (int)  n

Change the number of pending messages in the connection.

Parameters
nThe 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.

Parameters
portThis endpoint mach port
queueSizeSecond level queue size (can be 0)
Returns
Initialized connection endpoint

References _countLock, _messageCount, _port, _queue, and _state.


The documentation for this class was generated from the following file: