Move libcds 1.6.0 from SVN
[libcds.git] / tests / test-hdr / queue / hdr_rwqueue.cpp
1 //$$CDS-header$$
2
3 #include <cds/container/rwqueue.h>
4
5 #include "queue/queue_test_header.h"
6
7 namespace queue {
8     void Queue_TestHeader::RWQueue_()
9     {
10         testNoItemCounter<
11             cds::container::RWQueue<
12                 int
13                 ,cds::opt::lock_type< cds::SpinLock >
14             >
15         >();
16     }
17
18     void Queue_TestHeader::RWQueue_Counted()
19     {
20         testWithItemCounter<
21             cds::container::RWQueue<
22             int
23             ,cds::opt::lock_type< cds::SpinLock >
24             ,cds::opt::item_counter< cds::atomicity::item_counter >
25             >
26         >();
27     }
28 }