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 
54 
56 void ev_strand_destroy(ev_exec_t *exec);
57 
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif // !LELY_EV_STRAND_H_
This is the public header file of the event library.
const struct ev_exec_vtbl *const ev_exec_t
An abstract task executor.
Definition: ev.h:29
void ev_strand_destroy(ev_exec_t *exec)
Destroys a strand executor.
Definition: strand.c:175
ev_exec_t * ev_strand_create(ev_exec_t *inner_exec)
Creates a strand executor.
Definition: strand.c:148
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