Lucene++ - a full-featured, c++ search engine
API Documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
include
LuceneSync.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2011 Alan Wright. All rights reserved.
3
// Distributable under the terms of either the Apache License (Version 2.0)
4
// or the GNU Lesser General Public License.
6
7
#ifndef LUCENESYNC_H
8
#define LUCENESYNC_H
9
10
#include "Lucene.h"
11
12
namespace
Lucene
13
{
15
class
LPPAPI
LuceneSync
16
{
17
public
:
18
virtual
~
LuceneSync
();
19
20
protected
:
21
SynchronizePtr
objectLock
;
22
LuceneSignalPtr
objectSignal
;
23
24
public
:
26
virtual
SynchronizePtr
getSync();
27
29
virtual
LuceneSignalPtr
getSignal();
30
32
virtual
void
lock(int32_t timeout = 0);
33
35
virtual
void
unlock();
36
38
virtual
bool
holdsLock();
39
41
virtual
void
wait(int32_t timeout = 0);
42
44
virtual
void
notifyAll();
45
};
46
}
47
48
#endif
clucene.sourceforge.net