Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
sol-worker-thread.h File Reference

These routines are used for worker threads manipulation under Soletta. More...

#include <stdbool.h>
#include <inttypes.h>
#include "sol-common-buildopts.h"

Go to the source code of this file.

Data Structures

struct  sol_worker_thread_config
 Worker thread functions and context data configuration. More...
 

Macros

#define SOL_WORKER_THREAD_CONFIG_API_VERSION   (1)
 

Typedefs

typedef struct sol_worker_thread sol_worker_thread
 A worker thread handle. More...
 
typedef struct
sol_worker_thread_config 
sol_worker_thread_config
 Worker thread functions and context data configuration. More...
 

Functions

void sol_worker_thread_cancel (struct sol_worker_thread *thread)
 Cancel a worker thread. More...
 
void sol_worker_thread_feedback (struct sol_worker_thread *thread)
 Schedule feedback from the worker to the main thread. More...
 
bool sol_worker_thread_is_cancelled (const struct sol_worker_thread *thread)
 Check if a worker thread has been marked as cancelled. More...
 
struct sol_worker_threadsol_worker_thread_new (const struct sol_worker_thread_config *config)
 Create and run a worker thread. More...
 

Detailed Description

These routines are used for worker threads manipulation under Soletta.

Macro Definition Documentation

#define SOL_WORKER_THREAD_CONFIG_API_VERSION   (1)