wangzhengquan
2020-07-06 302ae4427b04a25e4f1ee8acadbb05bf902f47f7
test/test.h
@@ -1,8 +1,8 @@
#include "usg_common.h"
#include "usg_typedef.h"
#include "SArrayLockFreeQueue.h"
#include "lock_free_queue.h"
#include "SLinkedLockFreeQueue.h"
#include "QFactory.h"
#include "queue_factory.h"
 #include <pthread.h>
#define NTHREADS 3
@@ -23,8 +23,9 @@
// 销毁共享内存和信号
void destroy() {
   
   SLinkedLockFreeQueue<struct Item> *queue = QFactory::createLinkedLockFreeQueue<struct Item> (1, 10);
    queue->~SLinkedLockFreeQueue();
   LockFreeQueue<struct Item> *queue = QueueFactory::createQueue<struct Item> (1, 16);
   //queue->~LockFreeQueue();
   delete queue;
    mm_deinit();