mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 08:50:53 +08:00
19 lines
338 B
C
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
|