another attempt to fix windows build

This commit is contained in:
mrkraimer
2018-09-30 07:12:27 -04:00
parent 7e0bc0c45a
commit 93c6305952
6 changed files with 25 additions and 11 deletions

View File

@@ -31,15 +31,15 @@ namespace epics { namespace pvDatabase {
static PVDatabasePtr pvDatabaseMaster;
bool PVDatabase::getMasterFirstCall = true;
PVDatabasePtr PVDatabase::getMaster()
{
if(getMasterFirstCall) {
getMasterFirstCall = false;
static bool firstTime = true;
if(firstTime) {
firstTime = false;
pvDatabaseMaster = PVDatabasePtr(new PVDatabase());
PVArrayPlugin::create();
PVTimestampPlugin::create();
PVDeadbandPlugin::create();
}
return pvDatabaseMaster;
}