Skip to content
Snippets Groups Projects
Commit 63ba77a4 authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Drastically improved chances of actually switching threads when

yielding.

This solution still has two weaknesses though: A presumably mostly
theoretical one is that it might keep alternating between two threads
while starving a third. The other more pertinent one is that it still
doesn't handle threads waiting on condvars.

Adaption of patch suggested by Artur Skawina. Thanks.
parent 5daca000
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment