Asynchronous completion objects
include/thread/async_completion.h View source View on GitHubStructs
Section titled “Structs”async_completion
Section titled “async_completion”struct async_completion {
union {
struct apc apc;
struct {
apc_func_t apc_func_internal;
void *ctx;
enum async_completion_type type;
struct thread *thread;
};
};
void (*callback)(struct async_completion *);
}; async_completion_type
Section titled “async_completion_type”enum async_completion_type {
ASYNC_COMPLETION_APC = 0,
ASYNC_COMPLETION_WORKER = 1,
}; Functions
Section titled “Functions”async_complete
Section titled “async_complete”void async_complete(struct async_completion *ac, void *ctx); async_apc_callback_internal
Section titled “async_apc_callback_internal”void async_apc_callback_internal(void *arg); async_prepare
Section titled “async_prepare”void async_prepare(struct async_completion *ac, void (*cb)(
struct async_completion *), enum async_completion_type type); Macros
Section titled “Macros”ASYNC_CTX_NONE
Section titled “ASYNC_CTX_NONE”#define ASYNC_CTX_NONE NULL