VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLockfile.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2018 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <map>
12 #include <boost/thread.hpp>
13 #include <vrvUtil/vrvUtil.h>
14 
15 namespace makVrv
16 {
17 
18  //TODO MOVE to VRVUtil
22  {
23  public:
25  DtLockfile();
26 
28  virtual ~DtLockfile();
29 
31  typedef std::map<std::string, boost::recursive_mutex*> fileMapType;
32 
35  virtual boost::recursive_mutex* getFileMutex(const std::string& theFile);
36 
38  mutable boost::mutex myFilesMapMutex;
39 
42 
43  protected:
45  virtual void deleteFileMutex();
46 
47  };
48 }
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
Logic class for encrypting and decrypting MAK Encrypted Data Format files.
Definition: DtLockfile.h:21
Contains DLL export macros.
fileMapType myFileMap
file map
Definition: DtLockfile.h:41
std::map< std::string, boost::recursive_mutex * > fileMapType
file map type
Definition: DtLockfile.h:31
boost::mutex myFilesMapMutex
mutex for the map
Definition: DtLockfile.h:38

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)