|
swift
|
Return value of LockFree::uniqueWrite(). More...
Public Member Functions | |
| LockFreeUniqueWriter & | operator= (const T &other) |
| Replace the stored value by copying from a T. The change is applied in the destructor. | |
| LockFreeUniqueWriter & | operator= (T &&other) noexcept(std::is_nothrow_move_assignable_v< T >) |
| Replace the stored value by moving from a T. The change is applied in the destructor. | |
| LockFreeUniqueWriter (LockFreeUniqueWriter &&other) noexcept | |
| Move constructor. | |
| LockFreeUniqueWriter & | operator= (LockFreeUniqueWriter &&other) noexcept |
| Move assignment operator. | |
| ~LockFreeUniqueWriter () | |
| Destructor. The original object will be overwritten by the new one stored in the writer. | |
| T & | get () |
| The value can be modified through the returned reference. The modification is applied in the destructor. | |
| T * | operator-> () |
| The value can be modified through the returned reference. The modification is applied in the destructor. | |
| T & | operator* () |
| The value can be modified through the returned reference. The modification is applied in the destructor. | |
| operator T& () | |
| The value can be modified through the returned reference. The modification is applied in the destructor. | |
| LockFreeUniqueWriter (const LockFreeUniqueWriter &)=delete | |
| LockFreeUniqueWriter cannot be copied. | |
| LockFreeUniqueWriter & | operator= (const LockFreeUniqueWriter &)=delete |
| LockFreeUniqueWriter cannot be copied. | |
Friends | |
| class | LockFree< T > |
Return value of LockFree::uniqueWrite().
Allows any one thread to safely write to the lock-free object, as long as no other thread write to it.
Definition at line 60 of file lockfree.h.