remove conflict
[c11concurrency-benchmarks.git] / mabain / src / mabain_consts.cpp
1 /**
2  * Copyright (C) 2017 Cisco Inc.
3  *
4  * This program is free software: you can redistribute it and/or  modify
5  * it under the terms of the GNU General Public License, version 2,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15  */
16
17 // @author Changxue Deng <chadeng@cisco.com>
18
19 #include "mabain_consts.h"
20
21 namespace mabain {
22
23 const int CONSTS::ACCESS_MODE_READER           = 0x0;
24 const int CONSTS::ACCESS_MODE_WRITER           = 0x1;
25 const int CONSTS::ASYNC_WRITER_MODE            = 0x2;
26 const int CONSTS::SYNC_ON_WRITE                = 0x4;
27 const int CONSTS::USE_SLIDING_WINDOW           = 0x8;
28 const int CONSTS::MEMORY_ONLY_MODE             = 0x10;
29
30 const int CONSTS::OPTION_ALL_PREFIX            = 0x1;
31 const int CONSTS::OPTION_FIND_AND_STORE_PARENT = 0x2;
32 const int CONSTS::OPTION_RC_MODE               = 0x4;
33 const int CONSTS::OPTION_READ_SAVED_EDGE       = 0x8;
34
35 const int CONSTS::MAX_KEY_LENGHTH              = 256;
36 const int CONSTS::MAX_DATA_SIZE                = 0x7FFF;
37
38 int CONSTS::WriterOptions()
39 {
40     int options = ACCESS_MODE_WRITER;
41     return options;
42 }
43
44 int CONSTS::ReaderOptions()
45 {
46     int options = ACCESS_MODE_READER;
47     return options;
48 }
49
50 }