add static function to remove shared memory
This commit is contained in:
parent
5afed2d396
commit
aaec0e641b
@ -137,6 +137,15 @@ public:
|
||||
return RegionExists(key);
|
||||
}
|
||||
|
||||
template<typename IdentifierT >
|
||||
static void RemoveSharedMemory(
|
||||
const IdentifierT id
|
||||
) {
|
||||
OSRMLockFile lock_file;
|
||||
boost::interprocess::xsi_key key( lock_file().string().c_str(), id );
|
||||
RemoveSharedMemory(key);
|
||||
}
|
||||
|
||||
private:
|
||||
static bool RegionExists( const boost::interprocess::xsi_key &key ) {
|
||||
bool result = true;
|
||||
|
Loading…
Reference in New Issue
Block a user