RwLock
Allocate a new RwLock.
This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.
Allocate a new RwLock using the provided AutofreeScope.
The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped
.
Parameters
scope
The AutofreeScope to allocate this structure in.