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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
NoLockFactory.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 NOLOCKFACTORY_H
8 #define NOLOCKFACTORY_H
9 
10 #include "LockFactory.h"
11 
12 namespace Lucene {
13 
18 class LPPAPI NoLockFactory : public LockFactory {
19 public:
20  virtual ~NoLockFactory();
21 
23 
24 private:
25  static NoLockPtr getSingletonLock();
26 
27 public:
28  static NoLockFactoryPtr getNoLockFactory();
29 
31  virtual LockPtr makeLock(const String& lockName);
32 
35  virtual void clearLock(const String& lockName);
36 };
37 
38 }
39 
40 #endif

clucene.sourceforge.net