Reimplement LBQ on condition variables

This commit is contained in:
Cameron Gutman
2021-06-09 19:59:52 -05:00
parent 71a267fd28
commit fb9aab0e57
2 changed files with 58 additions and 86 deletions

View File

@@ -16,7 +16,7 @@ typedef struct _LINKED_BLOCKING_QUEUE_ENTRY {
typedef struct _LINKED_BLOCKING_QUEUE {
PLT_MUTEX mutex;
PLT_EVENT containsDataEvent;
PLT_COND cond;
PLINKED_BLOCKING_QUEUE_ENTRY head;
PLINKED_BLOCKING_QUEUE_ENTRY tail;
int sizeBound;