commit | f3efef4d60458fb1d40ac6978169f3e9479f1121 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Jun 20 09:14:40 2022 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Jul 01 19:15:14 2022 +0200 |
tree | d7b656a86fb7ccf4b1cd190407eded4a36f55152 | |
parent | 3fdacdddaff55c754b24813f4832518b87791efc [diff] |
MINOR: thread: make wake_thread() take care of the sleeping threads mask Almost every call place of wake_thread() checks for sleeping threads and clears the sleeping mask itself, while the function is solely used for there. Let's move the check and the clearing of the bit inside the function itself. Note that updt_fd_polling() still performs the check because its rules are a bit different.