Collaboration diagram for Message Queues:
|
Functions | |
| NUTMSGQ * | NutMsgQCreate (u_char bits) |
| Allocate a new message que. | |
| int | NutMsgQBroadcast (u_char id, int param, void *data) |
| Send a message to all message ques. | |
| int | NutMsgQPost (NUTMSGQ *que, u_char id, int param, void *data) |
| Send a message to a que and return immediately. | |
| int | NutMsgQSend (NUTMSGQ *que, u_char id, int param, void *data) |
| Send a message to a que and yields so that a waiting thread can act on the message. | |
| int | NutMsgQFull (NUTMSGQ *que) |
| Checks the state of a que. | |
| HANDLE | NutMsgQStartTimer (NUTMSGQ *que, u_long ms, int param, void *data, u_char flags) |
| Starts a periodic or one-shot timer on the given que. | |
| void | NutMsgQStopTimer (HANDLE timer) |
| Stops a timer. | |
| int | NutMsgQGetMessage (NUTMSGQ *que, NUTMSG *msg, u_long timeout) |
| Gets the next message from the que. | |
| void | NutMsgQFlush (NUTMSGQ *que) |
| Removes all entries from a que. | |
Variables | |
| NUTMSGQ * | nutMsgQue |
| global list of ques | |
| NUTMSGTMR * | nutMsgFreeTimers |
|
|
Allocate a new message que.
|
|
||||||||||||||||
|
Send a message to all message ques.
|
|
||||||||||||||||||||
|
Send a message to a que and return immediately.
|
|
||||||||||||||||||||
|
Send a message to a que and yields so that a waiting thread can act on the message. The sending thread should have a lower priority than the receiver thread
|
|
|
Checks the state of a que.
|
|
||||||||||||||||||||||||
|
Starts a periodic or one-shot timer on the given que.
|
|
|
Stops a timer.
|
|
||||||||||||||||
|
Gets the next message from the que.
|