Tervel
1.0.0
A collection of wait-free containers and algorithms.
|
#include <popbackwra_op.h>
Public Member Functions | |
PopWRAOpHelper (PopWRAOp< T > *op, T val) | |
~PopWRAOpHelper () | |
void * | complete (void *value, std::atomic< void * > *address) |
This method is implemented by each sub class and must guarantee that upon return that the descriptor no longer exists at the address it was placed. More... | |
bool | associate () |
bool | result (T &val) |
bool | result () |
Public Member Functions inherited from tervel::util::Descriptor | |
Descriptor () | |
virtual | ~Descriptor () |
virtual void * | get_logical_value ()=0 |
This method is implemented by each sub class. More... | |
virtual bool | on_watch (std::atomic< void * > *, void *) |
This method is optional to implement for each sub class. More... | |
virtual void | on_unwatch () |
This method must be implemented if on_watch is implemented, and is optional otherwise. More... | |
virtual bool | on_is_watched () |
This method is optional to implement for each sub class. More... | |
Private Attributes | |
T | val_ |
PopWRAOp< T > * | op_ {nullptr} |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
This method is implemented by each sub class and must guarantee that upon return that the descriptor no longer exists at the address it was placed.
current | the reference to this object as it is at the address, |
address | the location this object was read from |
Implements tervel::util::Descriptor.
|
inline |
|
inline |
|
private |
|
private |