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 // 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 NATIVEFSLOCKFACTORY_H
8 #define NATIVEFSLOCKFACTORY_H
9 
10 #include "FSLockFactory.h"
11 
12 namespace Lucene
13 {
16  class LPPAPI NativeFSLockFactory : public FSLockFactory
17  {
18  public:
22  NativeFSLockFactory(const String& lockDirName = EmptyString);
23  virtual ~NativeFSLockFactory();
24 
26 
27  public:
30  virtual LockPtr makeLock(const String& lockName);
31 
36  virtual void clearLock(const String& lockName);
37 
38  protected:
43  void acquireTestLock();
44  };
45 }
46 
47 #endif

clucene.sourceforge.net