Support to multi-threading and pthread interface (POSIX.1-2008) (#23)
[lunaix-os.git] / lunaix-os / hal / term / term_io.c
index 57602c81f423abe2bf250101f870210ee7689001..b1115c83c9a4cd5e22cfb119ddd0548e926b6806 100644 (file)
@@ -26,7 +26,7 @@ do_read_raw(struct term* tdev)
 
     while (sz <= min && dt <= expr) {
         // XXX should we held the device lock while we are waiting?
-        sched_yieldk();
+        sched_pass();
         dt = clock_systime() - t;
         t += dt;