|
a/src/rcldb/rcldb_p.h |
|
b/src/rcldb/rcldb_p.h |
|
... |
|
... |
19 |
#define _rcldb_p_h_included_
|
19 |
#define _rcldb_p_h_included_
|
20 |
|
20 |
|
21 |
#include "autoconfig.h"
|
21 |
#include "autoconfig.h"
|
22 |
|
22 |
|
23 |
#include <map>
|
23 |
#include <map>
|
|
|
24 |
#include <mutex>
|
24 |
|
25 |
|
25 |
#include <xapian.h>
|
26 |
#include <xapian.h>
|
26 |
|
27 |
|
27 |
#ifdef IDX_THREADS
|
28 |
#ifdef IDX_THREADS
|
28 |
#include "workqueue.h"
|
29 |
#include "workqueue.h"
|
29 |
#endif // IDX_THREADS
|
30 |
#endif // IDX_THREADS
|
30 |
#include "xmacros.h"
|
31 |
#include "xmacros.h"
|
31 |
#include "ptmutex.h"
|
|
|
32 |
|
32 |
|
33 |
namespace Rcl {
|
33 |
namespace Rcl {
|
34 |
|
34 |
|
35 |
class Query;
|
35 |
class Query;
|
36 |
|
36 |
|
|
... |
|
... |
79 |
bool m_isopen;
|
79 |
bool m_isopen;
|
80 |
bool m_iswritable;
|
80 |
bool m_iswritable;
|
81 |
bool m_noversionwrite; //Set if open failed because of version mismatch!
|
81 |
bool m_noversionwrite; //Set if open failed because of version mismatch!
|
82 |
#ifdef IDX_THREADS
|
82 |
#ifdef IDX_THREADS
|
83 |
WorkQueue<DbUpdTask*> m_wqueue;
|
83 |
WorkQueue<DbUpdTask*> m_wqueue;
|
84 |
PTMutexInit m_mutex;
|
84 |
std::mutex m_mutex;
|
85 |
long long m_totalworkns;
|
85 |
long long m_totalworkns;
|
86 |
bool m_havewriteq;
|
86 |
bool m_havewriteq;
|
87 |
void maybeStartThreads();
|
87 |
void maybeStartThreads();
|
88 |
#endif // IDX_THREADS
|
88 |
#endif // IDX_THREADS
|
89 |
|
89 |
|