|
myMPD
Internal API documentation
|
MPD worker thread implementation. More...
#include "compile_time.h"#include "src/mympd_worker/mympd_worker.h"#include "dist/sds/sds.h"#include "src/lib/log.h"#include "src/lib/mem.h"#include "src/lib/mympd_state.h"#include "src/lib/sds_extras.h"#include "src/lib/thread.h"#include "src/mympd_client/connection.h"#include "src/mympd_client/stickerdb.h"#include "src/mympd_worker/api.h"#include <pthread.h>#include <string.h>
Functions | |
| static void * | mympd_worker_run (void *arg) |
| bool | mympd_worker_start (struct t_mympd_state *mympd_state, struct t_partition_state *partition_state, struct t_work_request *request) |
MPD worker thread implementation.
|
static |
Private definitions
Private functions This is the main function of the worker thread.
| arg | void pointer to the mympd_worker_state |
| bool mympd_worker_start | ( | struct t_mympd_state * | mympd_state, |
| struct t_partition_state * | partition_state, | ||
| struct t_work_request * | request | ||
| ) |
Public functions Starts the worker thread in detached state.
| mympd_state | pointer to mympd_state struct |
| partition_state | pointer to partition_state struct |
| request | the work request |