summaryrefslogtreecommitdiff
path: root/include/tinyff/thread/thread.h
blob: 40c09a0ebbecdd8fcbeff54cad98afde810b3b62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifdef USE_THREAD

#ifndef TINYFF_THREAD_H
#define TINYFF_THREAD_H

typedef void (*ff_job_cb)(void *arg);

typedef struct {
    ff_job_cb callback;
    void *arg;
} ff_thread_job;

void *ff_thread_wrapper(void *ptr);

// Each platform must have their own bridge for running a thread job
// Like pthreads for POSIX systems
#endif