Lely core libraries
2.2.5
strand.h
Go to the documentation of this file.
1
31
#ifndef LELY_EV_STRAND_H_
32
#define LELY_EV_STRAND_H_
33
34
#include <
lely/ev/ev.h
>
35
36
#ifdef __cplusplus
37
extern
"C"
{
38
#endif
39
40
void
*ev_strand_alloc(
void
);
41
void
ev_strand_free(
void
*ptr);
42
ev_exec_t
*ev_strand_init(
ev_exec_t
*
exec
,
ev_exec_t
*inner_exec);
43
void
ev_strand_fini(
ev_exec_t
*
exec
);
44
53
ev_exec_t
*
ev_strand_create
(
ev_exec_t
*inner_exec);
54
56
void
ev_strand_destroy
(
ev_exec_t
*
exec
);
57
59
ev_exec_t
*
ev_strand_get_inner_exec
(
const
ev_exec_t
*
exec
);
60
61
#ifdef __cplusplus
62
}
63
#endif
64
65
#endif // !LELY_EV_STRAND_H_
ev_exec_t
const struct ev_exec_vtbl *const ev_exec_t
An abstract task executor.
Definition:
ev.h:29
ev_strand_create
ev_exec_t * ev_strand_create(ev_exec_t *inner_exec)
Creates a strand executor.
Definition:
strand.c:148
ev_strand_get_inner_exec
ev_exec_t * ev_strand_get_inner_exec(const ev_exec_t *exec)
Returns a pointer to the inner executor of a strand.
Definition:
strand.c:184
ev.h
ev_strand_destroy
void ev_strand_destroy(ev_exec_t *exec)
Destroys a strand executor.
Definition:
strand.c:175
ev_task::exec
ev_exec_t * exec
A pointer to the executor to which the task is (to be) submitted.
Definition:
task.h:43
include
lely
ev
strand.h
Generated by
1.8.17