1 #ifndef COARSE_LOCK_BUFFER_H
2 #define COARSE_LOCK_BUFFER_H
17 queue_[i].store(reinterpret_cast<T>(
nullptr));
81 #endif // COARSE_LOCK_BUFFER_H
uint64_t capacity_
Definition: lock_API.h:71
void detach_thread()
Definition: lock_API.h:27
std::atomic< T > * queue_
Definition: lock_API.h:76
bool isFull()
Definition: lock_API.h:63
bool isEmpty()
Definition: lock_API.h:67
pthread_mutex_t queue_lock_
Definition: lock_API.h:78
TestClass(size_t capacity, size_t num_threads)
Definition: lock_API.h:9
bool dequeue(T &val)
Definition: lock_API.h:41
bool enqueue(T val)
Definition: lock_API.h:29
void attach_thread()
Definition: lock_API.h:25
uint64_t head_
Definition: lock_API.h:73
Definition: blank_api.h:31
uint64_t fetchHeadSeq()
Definition: lock_API.h:55
uint64_t size_mask_
Definition: lock_API.h:72
char * name()
Definition: lock_API.h:21
uint64_t fetchTailSeq()
Definition: lock_API.h:59
uint64_t tail_
Definition: lock_API.h:74