mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
put THR_CRITICAL_LEAVE into do .. while statement.
This commit is contained in:
parent
6cec2e4b55
commit
caad30a422
1 changed files with 4 additions and 2 deletions
|
|
@ -460,8 +460,10 @@ struct pthread {
|
|||
(thrd)->critical_count++
|
||||
|
||||
#define THR_CRITICAL_LEAVE(thrd) \
|
||||
(thrd)->critical_count--; \
|
||||
_thr_ast(thrd);
|
||||
do { \
|
||||
(thrd)->critical_count--; \
|
||||
_thr_ast(thrd); \
|
||||
} while (0)
|
||||
|
||||
#define THR_UMUTEX_TRYLOCK(thrd, lck) \
|
||||
_thr_umutex_trylock((lck), TID(thrd))
|
||||
|
|
|
|||
Loading…
Reference in a new issue