Module ruspiro_lock::sync[][src]

Expand description

Structs

An mutual exclusive access lock for the interior data

The MutexGuard is the result of successfully aquiring the mutual exclusive lock for the interior data. If this guard goes ot of scope the lock will be released

An exclusive access lock around the given data

Result of aquiring read access to the data using read on the data lock. If the result goes out of scope the read lock is released.

Simple counting blocking or non-blocking lock

A blocking cross core lock to guarantee mutual exclusive access. While this lock might block other cores to continue processing this lock should be held as short as possible. Also care shall be taken while using this lock within interrupt handlers, as this might lead to deadlock situations if the lock holding core is interrupted and the interrupt is also trying to aquire the same lock.

Result of trying to access the data using try_lock or lock on the data lock. If the result goes out of scope the write lock is released.