Closed GoogleCodeExporter closed 9 years ago
i suggest don't touch manual_event and make new realization of io_sync based on
it.
Original comment by ki.stfu
on 8 Jul 2013 at 11:47
i suggest that such an implementation:
15 struct io_sync {
16 struct manual_event reading;
17 struct manual_event writing;
18 };
19
20 enum io_sync_op {
21 IO_SYNC_READING = 1,
22 IO_SYNC_WRITING = 2
23 };
24
25 extern void io_sync_init(struct io_sync *io);
26 extern void io_sync_enable(struct io_sync *io, enum io_sync_op op);
27 extern void io_sync_disable(struct io_sync *io, enum io_sync_op op);
28 extern int io_sync_wait(struct io_sync *io, enum io_sync_op op,
29 unsigned long timeout);
Original comment by ki.stfu
on 8 Jul 2013 at 1:58
Original comment by ki.stfu
on 16 Jul 2013 at 10:53
Original issue reported on code.google.com by
drakon.m...@gmail.com
on 8 Jul 2013 at 11:43