acl/lib_acl/samples/benchmark/taskq/taskq.h
2020-04-16 14:22:53 +08:00

19 lines
338 B
C

#ifndef __TASKQ_INCLUDE_H__
#define __TASKQ_INCLUDE_H__
#ifdef __cplusplus
extern "C" {
#endif
typedef struct TASKQ TASKQ;
TASKQ *taskq_create(unsigned qsize, unsigned nthreads);
void taskq_destroy(TASKQ *taskq);
void taskq_push(TASKQ *taskq, void (*callback)(void*), void *ctx);
#ifdef __cplusplus
}
#endif
#endif