-
Greetings, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The PEGTL is completely thread agnostic, it shouldn't care about whatever it is that you're doing as long as you are respecting all the basic rules of multi-threaded programming. If your concurrent queue blocks the producer on a condition variable when you try to push into a queue that is already full, and the consumer signals that variable when it takes something out of the queue/a full queue, you should get exactly the behaviour that you need without any additional effort. |
Beta Was this translation helpful? Give feedback.
The PEGTL is completely thread agnostic, it shouldn't care about whatever it is that you're doing as long as you are respecting all the basic rules of multi-threaded programming.
If your concurrent queue blocks the producer on a condition variable when you try to push into a queue that is already full, and the consumer signals that variable when it takes something out of the queue/a full queue, you should get exactly the behaviour that you need without any additional effort.