Public Member Functions | |
| void | addReadyConnection (ConnectionPtr, int=1) |
| void | addWaitingConnection (ConnectionPtr, int=1) |
| ConnectionsScheduler () | |
| ConnectionPtr | getConnection () |
| void | getConnections (list< ConnectionPtr > &out) |
| int | getConnectionsNumber () |
| void | initialize () |
| void | listener (struct ListenerArg *) |
| void | lockConnectionsList () |
| void | release () |
| void | removeConnection (ConnectionPtr connection) |
| void | removeListener (struct ListenerArg *) |
| void | restart () |
| void | terminateConnections () |
| void | unlockConnectionsList () |
| ~ConnectionsScheduler () | |
Private Attributes | |
| HashMap< SocketHandle, ConnectionPtr > | connections |
| Mutex | connectionsMutex |
| u_long | currentPriority |
| u_long | currentPriorityDone |
| ThreadID | dispatchedThreadId |
| DispatcherArg | dispatcherArg |
| Mutex | eventsMutex |
| list< ListenerArg * > | listeners |
| queue< ConnectionPtr > * | ready |
| Mutex | readyMutex |
| Semaphore * | readySemaphore |
| event | timeoutEv |
|
|
C'tor. |
|
|
D'tor. |
|
||||||||||||
|
Add a connection to ready connections queue. |
|
||||||||||||
|
Add a connection to waiting connections queue. |
|
|
Get a connection from the active connections queue. |
|
|
Fullfill a list with all the connections.
|
|
|
Get the alive connections number. |
|
|
Static initialization. |
|
|
|
|
|
Acquire the access to the connection mutex. |
|
|
Release all the blocking calls. |
|
|
Remove a connection from the connections set. |
|
|
|
|
|
Restart the scheduler. |
|
|
Terminate any active connection. |
|
|
Release the connection access. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.9.1