Skip to content

Changed the blocking trait to allow for empty.#1

Open
WilleBerg wants to merge 1 commit intoYHM404:mainfrom
WilleBerg:main
Open

Changed the blocking trait to allow for empty.#1
WilleBerg wants to merge 1 commit intoYHM404:mainfrom
WilleBerg:main

Conversation

@WilleBerg
Copy link

The blocking trait ensured that if the queue was empty, all consumers would just wait for a new element in a busy loop. This meant that if all threads tried to dequeue at the same time, the program would get stuck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments