3 ms·
> (Of course the inter thread queue uses a mutex or some other synchronisation mechanism, and the queue itself effectively acts as a synchronisation mechanism.)
by loeg 4y ago
> (Of course the inter thread queue uses a mutex or some other synchronisation mechanism, and the queue itself effectively acts as a synchronisation mechanism.)
I'd suggest using MPSC queues for this purpose (assuming the recipient is a single thread rather than a pool).