Fixed a "minor" bug...
This commit is contained in:
parent
6a31f4b48b
commit
933586661f
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
#include <sys/sem.h>
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
@ -68,7 +69,10 @@ namespace IPC {
|
||||||
}
|
}
|
||||||
|
|
||||||
///\brief The deconstructor
|
///\brief The deconstructor
|
||||||
semaphore::~semaphore() {}
|
semaphore::~semaphore() {
|
||||||
|
close();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
///\brief Returns whether we have a valid semaphore
|
///\brief Returns whether we have a valid semaphore
|
||||||
semaphore::operator bool() const {
|
semaphore::operator bool() const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue