void Serial::set_block(bool b)
{
- mode = b?(mode&~M_NONBLOCK):(mode|M_NONBLOCK);
+ adjust_mode(mode, M_NONBLOCK, !b);
sys_set_blocking(handle, b);
}
return ret;
}
+const Handle &Serial::get_handle(Mode m)
+{
+ check_access(m);
+ return handle;
+}
+
} // namespace IO
} // namespace Msp