swift
Public Member Functions | Friends | List of all members
swift::misc::LockFreeReader< T > Class Template Reference

Return value of LockFree::read(). More...

Public Member Functions

 LockFreeReader (const LockFreeReader &)=default
 Copy constructor.
 
LockFreeReaderoperator= (const LockFreeReader &)=default
 Copy assignment operator.
 
const T & get () const
 Return the value that was present when the reader was created.
 
const T * operator-> () const
 Return the value that was present when the reader was created.
 
const T & operator* () const
 Return the value that was present when the reader was created.
 
 operator const T & () const
 Return the value that was present when the reader was created.
 

Friends

class LockFree< std::remove_const_t< T > >
 

Detailed Description

template<typename T>
class swift::misc::LockFreeReader< T >

Return value of LockFree::read().

Allows any one thread to safely read from the lock-free object.

Definition at line 31 of file lockfree.h.


The documentation for this class was generated from the following file: