blob: d7c196d8697dbb0eb0ab3ef860c94bea045338c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#ifndef _JIO_OP_H
#define _JIO_OP_H
#include <iou.h>
#include <thunk.h>
/* ergonomic helper for submitting a thunk_t as a cb+cb_data pair to iou_op_queue() */
static inline void op_queue(iou_t *iou, iou_op_t *op, thunk_t *thunk)
{
return iou_op_queue(iou, op, (int (*)(void *))thunk_dispatch, thunk);
}
#endif
|