Cleaned up, fixed and robustified semaphore and signal related code
This commit is contained in:
parent
ee9b076b76
commit
24006648f9
7 changed files with 165 additions and 131 deletions
|
@ -75,6 +75,7 @@ namespace IPC {
|
|||
bool tryWait();
|
||||
bool tryWaitOneSecond();
|
||||
void close();
|
||||
void abandon();
|
||||
void unlink();
|
||||
private:
|
||||
#if defined(__CYGWIN__) || defined(_WIN32)
|
||||
|
@ -84,6 +85,7 @@ namespace IPC {
|
|||
#else
|
||||
sem_t * mySem;
|
||||
#endif
|
||||
bool isLocked;
|
||||
std::string myName;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue