vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Struct ScopedLock

Proxy structure that keeps the monitor of the given object locked until it goes out of scope.

struct ScopedLock(T) ;

Any unshared members of the object are safely accessible during this time. The usual way to use it is by calling lock.

Constructors

NameDescription
this (obj)

Fields

NameTypeDescription
m_ref Rebindable!T

Properties

NameTypeDescription
unsafeGet[get] inout(T)Returns an unshared reference to the locked object.

Methods

NameDescription
getObject ()

See Also

lock

Authors

Sönke Ludwig

Copyright

© 2013-2014 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.