|
Sturk 1.1.0
Publish-subscribe C implementation.
|
Waiting queue. More...


Go to the source code of this file.
Typedefs | |
| typedef struct StWaitQ | StWaitQ |
| Waiting queue. | |
Functions | |
| StWaitQ * | st_waitq_create (void) |
| Create a new waiting queue. | |
| void | st_waitq_destroy (StWaitQ *waitq) |
| Destroy a waiting queue. | |
| void | st_waitq_ins (StWaitQ *waitq, struct Vertegs *entry) |
| Insert an entry into a waiting queue. | |
| struct Vertegs * | st_waitq_rem (StWaitQ *waitq) |
| Remove an entry from the front of the queue. | |
| struct Vertegs * | st_waitq_tryrem (StWaitQ *waitq) |
| Try to remove an entry from the front of the queue. | |
Waiting queue.
| StWaitQ * st_waitq_create | ( | void | ) |
Create a new waiting queue.
| void st_waitq_destroy | ( | StWaitQ * | waitq | ) |
Destroy a waiting queue.
| [in,out] | waitq | The waiting queue. |
Insert an entry into a waiting queue.
| [in,out] | waitq | The waiting queue. |
| [in,out] | entry | The inserted entry. |
Remove an entry from the front of the queue.
| [in,out] | waitq | The waiting queue. |
This will block the thread if the queue is empty and wake it up only after an entry has been inserted.