git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6702 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2014-02-11 13:04:03 +00:00
parent 7f3e0e57b2
commit ec1fb708d8
1 changed files with 6 additions and 0 deletions

View File

@ -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();
}