|
CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
|
This defines a structure that contains all the state information for endpoint state changes. More...
Data Fields | |
| CdiConnectionState * | connection_state_ptr |
| Pointer to connection associated with this Endpoint Manager. | |
| CdiCsID | endpoint_list_lock |
| Lock used to protect access to endpoint_list, when required. | |
| CdiList | endpoint_list |
| List of endpoints associated with this connection (InternalEndpointState). | |
| CdiQueueHandle | destroy_endpoint_queue_handle |
| Queue used to hold handles of endpoints that need to be destroyed. | |
| CdiSignalType | endpoints_destroyed_signal |
| Signal used when endpoints in queue are destroyed. | |
| volatile bool | got_shutdown |
| True if got a connection shutdown command. | |
| volatile bool | thread_done |
| True if Endpoint Manager thread is done and exiting (or has exited). NOTE: Must use state_lock when accessing it. | |
| CdiThreadID | thread_id |
| Endpoint state thread identifier. | |
| CdiCsID | state_lock |
| Lock used to protect access to endpoint state. | |
| CdiSignalType | shutdown_signal |
| Signal used to shutdown Endpoint Manager. | |
| CdiSignalType | new_command_signal |
| Signal used to start processing a command. | |
| uint32_t | queued_commands_count |
| Total number of pending commands in endpoint queues. | |
| CdiSignalType | command_done_signal |
| Signal used when command processing has finished. | |
| volatile bool | poll_thread_waiting |
| If true, poll thread is running, but not using any resources. | |
| CdiSignalType | poll_thread_exit_signal |
| Signal used when poll thread is exiting,. | |
| CdiSignalType | all_threads_waiting_signal |
| Signal used when all registered threads are waiting. Signal is set in EndpointManagerThreadWait() when. | |
| CdiSignalType | all_threads_running_signal |
| Signal used when all registered threads are running. Signal is set at initialization and in EndpointManagerThreadWait() when thread_wait_count reaches zero. | |
| int | thread_wait_count |
| Number of endpoint threads that are waiting. | |
| int | registered_thread_count |
| Number of registered threads associated with this endpoint. | |
This defines a structure that contains all the state information for endpoint state changes.