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
SingleInstanceLockFactory.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 SINGLEINSTANCELOCKFACTORY_H
8 #define SINGLEINSTANCELOCKFACTORY_H
9
10 #include "LockFactory.h"
11
12 namespace Lucene
13 {
20 class LPPAPI SingleInstanceLockFactory : public LockFactory
21 {
22 public:
23 SingleInstanceLockFactory();
24 virtual ~SingleInstanceLockFactory();
25
26 LUCENE_CLASS(SingleInstanceLockFactory);
27
28 protected:
29 HashSet<String> locks;
30
31 public:
34 virtual LockPtr makeLock(const String& lockName);
35
40 virtual void clearLock(const String& lockName);
41 };
42 }
43
44 #endif

clucene.sourceforge.net