odyssey/src/mm_read.h

18 lines
250 B
C
Raw Normal View History

2017-03-23 12:41:56 +00:00
#ifndef MM_READ_H_
#define MM_READ_H_
/*
* machinarium.
*
* cooperative multitasking engine.
*/
static inline void
mm_io_read_stop(mm_io_t *io)
{
if (uv_is_active((uv_handle_t*)&io->handle))
uv_read_stop((uv_stream_t*)&io->handle);
}
#endif