joboccara / pipes

Pipelines for expressive code on collections in C++
MIT License
801 stars 80 forks source link

fifo #54

Open mgood7123 opened 4 years ago

mgood7123 commented 4 years ago

could this be used to implement a fifo? if so, is this thread-safe or thread-unsafe

joboccara commented 4 years ago

If by fifo you mean that the elements coming in a pipe come out in the same order, then with the pipes currently implemented in the library yes. Could you please be more specific about thread safety ? Which use case do you have in mind?

mgood7123 commented 4 years ago

If by fifo you mean that the elements coming in a pipe come out in the same order, then with the pipes currently implemented in the library yes. Could you please be more specific about thread safety ? Which use case do you have in mind?

Like a Thread-Safe Queue