File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ void __time_critical_func(sem_acquire_blocking)(semaphore_t *sem) {
23
23
uint32_t save = spin_lock_blocking (sem -> core .spin_lock );
24
24
if (sem -> permits > 0 ) {
25
25
sem -> permits -- ;
26
- lock_internal_spin_unlock_with_notify ( & sem -> core , save );
26
+ spin_unlock ( sem -> core . spin_lock , save );
27
27
break ;
28
28
}
29
29
lock_internal_spin_unlock_with_wait (& sem -> core , save );
@@ -43,7 +43,7 @@ bool __time_critical_func(sem_acquire_block_until)(semaphore_t *sem, absolute_ti
43
43
uint32_t save = spin_lock_blocking (sem -> core .spin_lock );
44
44
if (sem -> permits > 0 ) {
45
45
sem -> permits -- ;
46
- lock_internal_spin_unlock_with_notify ( & sem -> core , save );
46
+ spin_unlock ( sem -> core . spin_lock , save );
47
47
return true;
48
48
}
49
49
if (lock_internal_spin_unlock_with_best_effort_wait_or_timeout (& sem -> core , save , until )) {
@@ -56,7 +56,7 @@ bool __time_critical_func(sem_try_acquire)(semaphore_t *sem) {
56
56
uint32_t save = spin_lock_blocking (sem -> core .spin_lock );
57
57
if (sem -> permits > 0 ) {
58
58
sem -> permits -- ;
59
- lock_internal_spin_unlock_with_notify ( & sem -> core , save );
59
+ spin_unlock ( sem -> core . spin_lock , save );
60
60
return true;
61
61
}
62
62
spin_unlock (sem -> core .spin_lock , save );
You can’t perform that action at this time.
0 commit comments