29#define NRF_RPC_OS_WAIT_FOREVER -1
30#define NRF_RPC_OS_NO_WAIT 0
33struct nrf_rpc_os_event;
void nrf_rpc_os_remote_reserve()
Reserve one thread from a remote thread pool.
void nrf_rpc_os_thread_pool_send(const uint8_t *data, size_t len)
Send work to a thread pool.
void(* nrf_rpc_os_work_t)(const uint8_t *data, size_t len)
Work callback that will be called from thread pool.
Definition nrf_rpc_os_tmpl.h:43
int nrf_rpc_os_event_init(struct nrf_rpc_os_event *event)
Initialize event passing structure.
void nrf_rpc_os_remote_count(int count)
Set number of remote threads.
void nrf_rpc_os_msg_get(struct nrf_rpc_os_msg *msg, const uint8_t **data, size_t *len)
Get a message.
int nrf_rpc_os_event_wait(struct nrf_rpc_os_event *event, int32_t timeout)
Wait for an event.
void nrf_rpc_os_tls_set(void *data)
Set TLS (Thread Local Storage) for nRF RPC.
void * nrf_rpc_os_tls_get(void)
Get TLS (Thread Local Storage) for nRF RPC.
int nrf_rpc_os_msg_init(struct nrf_rpc_os_msg *msg)
Initialize message passing structure.
void nrf_rpc_os_ctx_pool_release(uint32_t index)
Release context from context pool.
void nrf_rpc_os_event_set(struct nrf_rpc_os_event *event)
Set an event.
uint32_t nrf_rpc_os_ctx_pool_reserve()
Reserve one context from command context pool.
void nrf_rpc_os_msg_set(struct nrf_rpc_os_msg *msg, const uint8_t *data, size_t len)
Pass a message to a different therad.
void nrf_rpc_os_remote_release()
Release one thread from a remote thread pool.
int nrf_rpc_os_init(nrf_rpc_os_work_t callback)
nRF RPC OS-dependent initialization.