MXS_WORKER passed to poll_waitevents

This commit is contained in:
Johan Wikman
2017-02-16 13:00:44 +02:00
parent 016ed89b3e
commit ab37333ce5
4 changed files with 20 additions and 4 deletions

View File

@ -50,6 +50,18 @@ enum mxs_worker_msg_id
*/
MXS_WORKER* mxs_worker_get(int worker_id);
/**
* Return the id of the worker.
*
* @param worker A worker.
*
* @return The id of the worker.
*/
static inline int mxs_worker_id(MXS_WORKER* worker)
{
return worker->id;
}
/**
* Post a message to a worker.
*