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:
parent
7f3e0e57b2
commit
ec1fb708d8
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue