mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
MINOR: applets: no need to check for runqueue's emptiness in appctx_res_wakeup()
The __appctx_wakeup() function already does it. It matters with threads enabled because it simplifies the code in appctx_res_wakeup() to get rid of this test.
This commit is contained in:
parent
6dbd3e963b
commit
62a124977b
1 changed files with 0 additions and 5 deletions
|
|
@ -147,11 +147,6 @@ static inline int appctx_res_wakeup(struct appctx *appctx)
|
|||
SPIN_UNLOCK(APPLETS_LOCK, &applet_active_lock);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!LIST_ISEMPTY(&appctx->runq)) {
|
||||
SPIN_UNLOCK(APPLETS_LOCK, &applet_active_lock);
|
||||
return 0;
|
||||
}
|
||||
__appctx_wakeup(appctx);
|
||||
SPIN_UNLOCK(APPLETS_LOCK, &applet_active_lock);
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue