mirror of
https://github.com/apache/nuttx.git
synced 2025-12-06 17:23:49 +08:00
Compare commits
1 Commits
7588da4f76
...
revert-173
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b96f993015 |
@@ -76,7 +76,7 @@ void sched_lock(void)
|
||||
* integer type.
|
||||
*/
|
||||
|
||||
DEBUGASSERT(rtcb && rtcb->lockcount < MAX_LOCK_COUNT);
|
||||
DEBUGASSERT(rtcb->lockcount < MAX_LOCK_COUNT);
|
||||
|
||||
/* A counter is used to support locking. This allows nested lock
|
||||
* operations on this thread (on any CPU)
|
||||
|
||||
@@ -64,7 +64,7 @@ void sched_unlock(void)
|
||||
|
||||
/* rtcb may be NULL only during early boot-up phases */
|
||||
|
||||
DEBUGASSERT(rtcb && rtcb->lockcount > 0);
|
||||
DEBUGASSERT(rtcb->lockcount > 0);
|
||||
|
||||
/* Check if the lock counter has decremented to zero. If so,
|
||||
* then pre-emption has been re-enabled.
|
||||
|
||||
Reference in New Issue
Block a user