VR-Vantage
Loading...
Searching...
No Matches
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
15namespace makVrv
16{
17
18 //TODO MOVE to VRVUtil
22 {
23 public:
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}
virtual boost::recursive_mutex * getFileMutex(const std::string &theFile)
lock a image file so it cannot be read by a different thread when getting written
std::map< std::string, boost::recursive_mutex * > fileMapType
file map type
Definition DtLockfile.h:31
fileMapType myFileMap
file map
Definition DtLockfile.h:41
virtual ~DtLockfile()
DTOR.
boost::mutex myFilesMapMutex
mutex for the map
Definition DtLockfile.h:38
virtual void deleteFileMutex()
unlock a image file so it can be read now
Contains DtCreateSensorFieldOfViewCommand and DtCreateSensorFieldOfViewCommandCreator class declarati...
Definition DtGridLinesSettingsRecord.h:16
Contains DLL export macros.
#define DT_DLL_VRVUTIL
Definition vrvUtil.h:34