wangzhengquan
2020-08-23 3c4b18f39e06a09a05a13476f212d4deaa1e4707
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
#include "test.h"
#include "shm_allocator.h"
void test() {
 
        LockFreeQueue<int, DM_Allocator> *queue = new LockFreeQueue<int, DM_Allocator>(16);
        queue->push(12);
        int a;
        queue->pop(a);
        printf("%d\n", a);
        delete queue;
    
}
int main() {
 
    test();
    std::cin.get();
}