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

fix: sync/cond and sync/pool noyields with timeout=0 #9

Merged
merged 3 commits into from
Mar 3, 2024

Conversation

ochaton
Copy link
Member

@ochaton ochaton commented Mar 3, 2024

* sync/cond: caller now can "check" whether value is present in condvar with cond:recv(0) and it is guarantied that this call never yields
* sync/pool: caller now can send task with {wait_timeout=0} and be sure, that execution will not yield and will return proper message TASK_WAS_NOT_SCHEDULED if no free workers are available in the pool right now

Vladislav Grubov added 3 commits March 4, 2024 02:14
	* sync/cond: caller now can "check" whether value is present in
	  condvar with cond:recv(0) and it is guarantied that this call
	  never yields
	* sync/pool: caller now can send task with {wait_timeout=0} and
	  be sure, that execution will not yield and will return proper
	  message TASK_WAS_NOT_SCHEDULED if no free workers are
	  available in the pool right now
@ochaton ochaton merged commit eb439bd into master Mar 3, 2024
4 checks passed
@ochaton ochaton deleted the fix-timeout-0 branch March 3, 2024 22:41
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