wangzhengquan
2020-07-29 4f8fd73876be6adc87b2e24440d1174276c88ff6
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();
}