25 #ifndef TERVEL_UTIL_DESCRIPTOR_H_
26 #define TERVEL_UTIL_DESCRIPTOR_H_
71 virtual void *
complete(
void *current, std::atomic<void *> *address) = 0;
99 virtual bool on_watch(std::atomic<void *>* ,
void * ) {
127 #endif // TERVEL_UTIL_DESCRIPTOR_H_
virtual void * get_logical_value()=0
This method is implemented by each sub class.
virtual void on_unwatch()
This method must be implemented if on_watch is implemented, and is optional otherwise.
Definition: descriptor.h:109
Descriptor()
Definition: descriptor.h:62
DISALLOW_COPY_AND_ASSIGN(Descriptor)
TODO(steven):
Definition: mcas.h:36
virtual bool on_is_watched()
This method is optional to implement for each sub class.
Definition: descriptor.h:117
This defines the Descriptor class, this class is designed to be extend and be used in conjunction wit...
Definition: descriptor.h:60
virtual void * complete(void *current, std::atomic< void * > *address)=0
This method is implemented by each sub class and must guarantee that upon return that the descriptor ...
virtual bool on_watch(std::atomic< void * > *, void *)
This method is optional to implement for each sub class.
Definition: descriptor.h:99
virtual ~Descriptor()
Definition: descriptor.h:63