Skip to content

Commit 4d5aafd

Browse files
committed
sync: Introduce new wrapper types for locking
This introduces new synchronization types which are meant to be the foundational building blocks for sharing data among tasks. The new Mutex and RWLock types have a type parameter which is the internal data that is accessed. Access to the data is all performed through the guards returned, and the guards all have autoderef implemented for easy access.
1 parent ae049e8 commit 4d5aafd

File tree

1 file changed

+816
-0
lines changed

1 file changed

+816
-0
lines changed

0 commit comments

Comments
 (0)