Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Add overloads of core.sync.rwmutex.ReadWriteMutex.Reader/Writer.tryLock that take a timeout duration #3114

Merged
merged 1 commit into from
May 24, 2020

Conversation

n8sh
Copy link
Member

@n8sh n8sh commented May 23, 2020

This is being submitted as a patch to D runtime because efficient implementation requires access to private fields of ReadWriteMutex.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @n8sh!

Bugzilla references

Auto-close Bugzilla Severity Description
20859 enhancement Add overloads of core.sync.rwmutex.ReadWriteMutex.Reader/Writer.tryLock that take a timeout duration

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + druntime#3114"

@dlang-bot dlang-bot added the Enhancement New functionality label May 23, 2020
@n8sh n8sh force-pushed the issue-20859 branch 6 times, most recently from 3f8bee1 to 7162a8a Compare May 23, 2020 18:10
@n8sh n8sh added the WIP Work In Progress - not ready for review or pulling label May 23, 2020
@n8sh n8sh removed the WIP Work In Progress - not ready for review or pulling label May 23, 2020
src/core/sync/rwmutex.d Outdated Show resolved Hide resolved
src/core/sync/rwmutex.d Outdated Show resolved Hide resolved
src/core/sync/rwmutex.d Outdated Show resolved Hide resolved
src/core/sync/rwmutex.d Outdated Show resolved Hide resolved
…eader/Writer.tryLock that take a timeout duration
@dlang-bot dlang-bot merged commit 35e6398 into dlang:master May 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement New functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants