Is there any threadsafe queue?

John Burton via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Sep 13 07:51:19 UTC 2017


Is there any threadsafe queue in the standard library?
I've not been able to find anything but thought I'd check before 
making my own.

I want to be able to assemble messages (Which are just streams of 
bytes) in one thread into a struct and push them to the queue, 
and then have a another thread be able to read and process the 
messages. Single producer and consumer.


More information about the Digitalmars-d-learn mailing list