Re:Implementing Queues for Event-Driven Programs
by gpderetta on Tuesday June 14, 2016 @10:14AM
(#11902118)
Each queue has its own mutex (or better, use N lock free queues), but they would all share a single signaling object. As signaling is the slow path and it is rare, it is fine to contend in that case. You can't use a condition variable directly, but can build an event signaling object on top of a condvar and (another) mutex.
[ Parent
| on HN ]
There are no comments on this comment yet.