8000 Fix RecursiveMutex to work outside of tasks and make lock() nothrow. by s-ludwig · Pull Request #426 · vibe-d/vibe-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix RecursiveMutex to work outside of tasks and make lock() nothrow. #426

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

Merged
merged 3 commits into from
Mar 22, 2025

Conversation

s-ludwig
Copy link
Member

Was using Task.getThis() to identify the current lock owner, which would be Task.init outside of a task. Using TaskFiber.getThis() instead, which returns a dummy fiber instance if called outside of a fiber, so that it can be distinguished from TaskFiber.init meaning no owner.

Was using Task.getThis() to identify the current lock owner, which would be Task.init outside of a task. Using TaskFiber.getThis() instead, which returns a dummy fiber instance if called outside of a fiber, so that it can be distinguished from TaskFiber.init meaning no owner.
@s-ludwig s-ludwig requested a review from l-kramer March 22, 2025 10:10
@l-kramer l-kramer merged commit febc87d into master Mar 22, 2025
13 checks passed
@l-kramer l-kramer deleted the recursive_lock_fix branch March 22, 2025 10:52
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
0