wangzhengquan
2020-06-11 981244e52c0d474df04d8b2ee6a2d57561c1a2f0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "usg_common.h"
#include "safe_queue.h"
 
#define QUEUE_SIZE 10
 
 
using namespace std;
 
int main() {
    SafeQueue<int> m_queue(10);
    m_queue.push(1);
    m_queue.push(2);
    int a;
    m_queue.pop(a);
    cout << a << endl;
    m_queue.pop(a);
    cout << a << endl;
}