]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: task/thread: factor out a wake-up condition
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Apr 2019 18:52:51 +0000 (20:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 Apr 2019 20:15:58 +0000 (22:15 +0200)
commit8c12e2f785ad47fedd80af745f1c5743efcd35ff
tree68e7c433779b237a484dc320188d24efd2c9d244
parenta70bfaaf8b411dcd745db7d432d043a2d6f291ea
MINOR: task/thread: factor out a wake-up condition

The wakeup condition in task_wakeup() is redundant as it is already
validated by the CAS. Better move the __task_wakeup() call there, it
also has the merit of being easier to audit this way. This also reduces
the code size by around 1.8 kB :

  $ size haproxy-?
     text    data     bss     dec     hex filename
  2153806  100208 1307676 3561690  3658da haproxy-1
  2152094  100208 1307676 3559978  36522a haproxy-2
include/proto/task.h