Lucene++ - a full-featured, c++ search engine
API Documentation


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
NativeFSLockFactory.h
Go to the documentation of this file.
1 
2 // Copyright (c) 2009-2014 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 NATIVEFSLOCKFACTORY_H
8 #define NATIVEFSLOCKFACTORY_H
9 
10 #include "FSLockFactory.h"
11 
12 namespace Lucene {
13 
16 class LPPAPI NativeFSLockFactory : public FSLockFactory {
17 public:
21  NativeFSLockFactory(const String& lockDirName = EmptyString);
22  virtual ~NativeFSLockFactory();
23 
25 
26 public:
29  virtual LockPtr makeLock(const String& lockName);
30 
35  virtual void clearLock(const String& lockName);
36 
37 protected:
42  void acquireTestLock();
43 };
44 
45 }
46 
47 #endif

clucene.sourceforge.net