Struct Weak
Helper struct that keeps a weak reference to a Resource.
struct Weak(T)
if (is(T : IAtomicRefCounted));
Constructors
| Name | Description |
|---|---|
this
(obj)
|
Build a Weak instance. |
Fields
| Name | Type | Description |
|---|---|---|
_obj
|
T |
Properties
| Name | Type | Description |
|---|---|---|
disposed[get]
|
bool | Check whether the resource has been disposed. |
Methods
| Name | Description |
|---|---|
lock
()
|
Return a Rc that contain the underlying resource if it has not been disposed. |
reset
()
|
Reset the internal reference. |