Merge branch 'development' into LTS_development

This commit is contained in:
Thulinma 2018-03-20 14:30:42 +01:00
commit 0385daabe8
7 changed files with 262 additions and 124 deletions

View file

@ -349,6 +349,18 @@ namespace IPC {
close();
}
/// Returns true if the open file still exists.
/// Not implemented under Windows.
bool sharedPage::exists(){
#ifdef SHM_ENABLED
struct stat sb;
if (fstat(handle, &sb)){return false;}
return (sb.st_nlink > 0);
#else
return true;
#endif
}
#ifdef SHM_ENABLED
///\brief Unmaps a shared page if allowed
void sharedPage::unmap() {