mirror of https://github.com/yandex/odyssey.git
18 lines
253 B
C
18 lines
253 B
C
![]() |
#ifndef MM_IO_READ_H_
|
||
|
#define MM_IO_READ_H_
|
||
|
|
||
|
/*
|
||
|
* machinarium.
|
||
|
*
|
||
|
* Cooperative multitasking engine.
|
||
|
*/
|
||
|
|
||
|
static inline void
|
||
|
mm_io_read_stop(mmio *io)
|
||
|
{
|
||
|
if (uv_is_active((uv_handle_t*)&io->handle))
|
||
|
uv_read_stop((uv_stream_t*)&io->handle);
|
||
|
}
|
||
|
|
||
|
#endif
|