Initialize shared memory only if it is used.

This commit is contained in:
Alexey Rybalchenko
2017-01-09 13:37:39 +01:00
committed by Mohammad Al-Turany
parent ac1da4db66
commit 8cf1cbb930
5 changed files with 43 additions and 35 deletions

View File

@@ -70,7 +70,7 @@ class FairMQSocketSHM : public FairMQSocket
std::atomic<unsigned long> fMessagesRx;
static std::unique_ptr<FairMQContextSHM> fContext;
// static bool fContextInitialized;
static bool fContextInitialized;
};
#endif /* FAIRMQSOCKETSHM_H_ */