diff options
-rw-r--r-- | os/nil/src/nil.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/os/nil/src/nil.c b/os/nil/src/nil.c index edd717600..789256127 100644 --- a/os/nil/src/nil.c +++ b/os/nil/src/nil.c @@ -447,7 +447,9 @@ void chThdResumeI(thread_reference_t *trp, msg_t msg) { void chThdSleep(systime_t time) {
chSysLock();
+
chThdSleepS(time);
+
chSysUnlock();
}
@@ -462,7 +464,9 @@ void chThdSleep(systime_t time) { void chThdSleepUntil(systime_t time) {
chSysLock();
+
chThdSleepUntilS(time);
+
chSysUnlock();
}
@@ -545,8 +549,10 @@ msg_t chSemWaitTimeoutS(semaphore_t *sp, systime_t timeout) { void chSemSignal(semaphore_t *sp) {
chSysLock();
+
chSemSignalI(sp);
chSchRescheduleS();
+
chSysUnlock();
}
|