#ifndef SYNC_QUEUE_H
#define SYNC_QUEUE_H
-#include "atomic_compat.h"
+#include <atomic>
#define SYNC_QUEUE_BUFSIZE 16
~sync_queue()
{
node* n = head_node;
- while (n != NULL) {
+ while (n != nullptr) {
node* prev = n;
n = n->next;
delete prev;
private:
struct node {
- node(): next(NULL) { }
+ node(): next(nullptr) { }
T values[SYNC_QUEUE_BUFSIZE];
node* next;
};