mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
ae469d23e1
C functions that have no parameters should use (void) to signify that they have no parameters, otherwise legacy C handling for parameters will apply.
24 lines
528 B
C
24 lines
528 B
C
#pragma once
|
|
|
|
#include "c99defs.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct os_task_queue;
|
|
typedef struct os_task_queue os_task_queue_t;
|
|
|
|
typedef void (*os_task_t)(void *param);
|
|
|
|
EXPORT os_task_queue_t *os_task_queue_create(void);
|
|
EXPORT bool os_task_queue_queue_task(os_task_queue_t *tt, os_task_t task,
|
|
void *param);
|
|
EXPORT void os_task_queue_destroy(os_task_queue_t *tt);
|
|
EXPORT bool os_task_queue_wait(os_task_queue_t *tt);
|
|
EXPORT bool os_task_queue_inside(os_task_queue_t *tt);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|