Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync/waitgroup: force sleeping for 1ms. Fixes issues #2874 and #2961. #2964

Merged
merged 2 commits into from
Dec 3, 2019

Conversation

spytheman
Copy link
Member

Busy empty loops are optimized by some compilers with -prod.
This PR adds a C.usleep(1000) line inside the WaitGroup.wait() loop to prevent that.

@spytheman
Copy link
Member Author

Close #2961 .
Close #2874 .

@medvednikov medvednikov merged commit b907cf2 into vlang:master Dec 3, 2019
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.

2 participants