DAOS API: src/include/daos_event.h Source File

| DAOS API (v2.1 - dev)

Loading...
Searching...
No Matches
daos_event.h
1
25
26#ifndef __DAOS_EVENT_H__
27#define __DAOS_EVENT_H__
28
29#if defined(__cplusplus)
30extern "C" {
31#endif
32
33#include <daos_types.h>
34#include <daos_errno.h>
35
47int
48daos_eq_create(daos_handle_t *eqh);
49
50#define DAOS_EQ_DESTROY_FORCE 1
60int
61daos_eq_destroy(daos_handle_t eqh, int flags);
62
80int
81daos_eq_poll(daos_handle_t eqh, int wait_running,
82 int64_t timeout, unsigned int nevents, daos_event_t **events);
83
104int
105daos_eq_query(daos_handle_t eqh, daos_eq_query_t query,
106 unsigned int nevents, daos_event_t **events);
107
129int
130daos_event_init(daos_event_t *ev, daos_handle_t eqh, daos_event_t *parent);
131
147int
148daos_event_fini(daos_event_t *ev);
149
160daos_event_t *
161daos_event_next(daos_event_t *parent, daos_event_t *child);
162
181int
182daos_event_test(struct daos_event *ev, int64_t timeout, bool *flag);
183
184typedef int (*daos_event_comp_cb_t)(void *, daos_event_t *, int);
185
198int
199daos_event_register_comp_cb(struct daos_event *ev, daos_event_comp_cb_t cb,
200 void *arg);
201
222int
223daos_event_parent_barrier(struct daos_event *ev);
224
236int
237daos_event_abort(daos_event_t *ev);
238
239#if defined(__cplusplus)
240}
241#endif
242
243#endif /* __DAOS_EVENT_H__ */
daos_event
Definition daos_types.h:159
daos_handle_t
Definition daos_types.h:76