|
📨 chic 0.0.0
Realtime-safe channels in C
|
Error enumeration definition. More...
Go to the source code of this file.
Enumerations | |
| enum | chic_err { CHIC_OK = 0 , CHIC_ARGS_INVAL , CHIC_CLAIM_ORDER , CHIC_CHAN_UNREAD , CHIC_CHAN_CLOSED , CHIC_CHAN_FULL , CHIC_CHAN_EMPTY } |
| Identifiers for channel states and errors. More... | |
Functions | |
| const char * | chic_strerror (enum chic_err err) |
| Get a string describing an error. | |
Error enumeration definition.
| enum chic_err |
Identifiers for channel states and errors.
| Enumerator | |
|---|---|
| CHIC_OK | The operation completed successfully. |
| CHIC_ARGS_INVAL | The function was called with invalid arguments. |
| CHIC_CLAIM_ORDER | The channel had an uncommitted claim sequenced prior that must be committed first. |
| CHIC_CHAN_UNREAD | The channel has unreceived items.
|
| CHIC_CHAN_CLOSED | The channel is closed. This error may occur either when a send operation is attempted on a closed channel, or if a read operation is attempted on a closed channel and there is not enough items remaining in the channel to fulfull that read operation. |
| CHIC_CHAN_FULL | The channel's buffer is full and cannot be sent to. |
| CHIC_CHAN_EMPTY | The channel's buffer is empty and cannot be received from. |