mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-23 00:19:53 +00:00
Use a double-linked list for the linked blocking queue so insertions are done in O(1) time
This commit is contained in:
@@ -35,7 +35,7 @@ void destroyInputStream(void) {
|
||||
entry = LbqDestroyLinkedBlockingQueue(&packetQueue);
|
||||
|
||||
while (entry != NULL) {
|
||||
nextEntry = entry->next;
|
||||
nextEntry = entry->flink;
|
||||
free(entry->data);
|
||||
free(entry);
|
||||
entry = nextEntry;
|
||||
|
||||
Reference in New Issue
Block a user