Added XSI shared memory

[SVN r67451]
This commit is contained in:
Ion Gaztañaga
2010-12-26 09:53:56 +00:00
parent a86d42120e
commit 005b78950b
19 changed files with 1031 additions and 255 deletions

View File

@@ -66,11 +66,6 @@ int main ()
shared_memory_object::remove(ShmName);
shared_memory shm1(create_only, ShmName, ShmSize, read_write, 0, permissions());
//Compare name
if(std::strcmp(shm1.get_name(), ShmName) != 0){
return 1;
}
//Overwrite all memory
std::memset(shm1.get_user_address(), 0, shm1.get_user_size());