Commit 23fd2cc
committed
msg/DispatchQueue: wake up only one dispatch thread
When adding one message, only one thread needs to be woken up. Waking
up all is a more expensive operation and leads to unnecessary lock
contention and context switches.
Signed-off-by: Max Kellermann <[email protected]>1 parent 7e5ebb7 commit 23fd2cc
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
0 commit comments