Fixed w32 compiling.
This commit is contained in:
parent
59c1023447
commit
b460321e3c
1 changed files with 2 additions and 1 deletions
|
@ -102,10 +102,11 @@ namespace IPC {
|
||||||
|
|
||||||
///\brief Returns the current value of the semaphore
|
///\brief Returns the current value of the semaphore
|
||||||
int semaphore::getVal() const {
|
int semaphore::getVal() const {
|
||||||
int res;
|
|
||||||
#ifdef __CYGWIN__
|
#ifdef __CYGWIN__
|
||||||
|
LONG res;
|
||||||
ReleaseSemaphore(mySem, 0, &res);//not really release.... just checking to see if I can get the value this way
|
ReleaseSemaphore(mySem, 0, &res);//not really release.... just checking to see if I can get the value this way
|
||||||
#else
|
#else
|
||||||
|
int res;
|
||||||
sem_getvalue(mySem, &res);
|
sem_getvalue(mySem, &res);
|
||||||
#endif
|
#endif
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Add table
Reference in a new issue