X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/8f5e351ba6584886c256d88d2112bd1efab5f1bf..4d5ec9803b74d0f3e9c002a92a748bd08b6640ac:/sync_queue.h?ds=inline diff --git a/sync_queue.h b/sync_queue.h index fc35339..55d2e79 100644 --- a/sync_queue.h +++ b/sync_queue.h @@ -1,7 +1,7 @@ #ifndef SYNC_QUEUE_H #define SYNC_QUEUE_H -#include "atomic_compat.h" +#include #define SYNC_QUEUE_BUFSIZE 16 @@ -18,7 +18,7 @@ public: ~sync_queue() { node* n = head_node; - while (n != NULL) { + while (n != nullptr) { node* prev = n; n = n->next; delete prev; @@ -84,7 +84,7 @@ public: private: struct node { - node(): next(NULL) { } + node(): next(nullptr) { } T values[SYNC_QUEUE_BUFSIZE]; node* next; };