need a waitable queue class, thread safe
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Just used the incredible tool Google, and found this[^]. It does pretty much what I understood you need. Implementation uses boost components for thread locking. Edit: It has a few limitations, as not being able to use a timeout when waiting for elements, but since the source code is provided you can easily add such functionality if desired. If you don't fancy boost, you can replace it with a critical section or equivalent.