Struct ScopedLock
Proxy structure that keeps the monitor of the given object locked until it goes out of scope.
Any unshared members of the object are safely accessible during this time. The usual
way to use it is by calling lock
.
Constructors
Name | Description |
---|---|
this
|
Fields
Name | Type | Description |
---|---|---|
m_ref
|
Rebindable!T |
Properties
Name | Type | Description |
---|---|---|
unsafeGet
[get]
|
inout(T) |
Returns an unshared reference to the locked object. |
Methods
Name | Description |
---|---|
getObject
|
|
opDot
|
See Also
Authors
Sönke Ludwig
Copyright
© 2013-2014 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.