odyssey/lib/mm_read.h

18 lines
247 B
C
Raw Normal View History

#ifndef MM_READ_H_
#define MM_READ_H_
2016-12-06 12:28:27 +00:00
/*
* 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