Commit 2434cd3f authored by rswindell's avatar rswindell
Browse files

Eliminated Win32 version of sem_getvalue (didn't work correctly).

parent a172a8fc
......@@ -75,21 +75,3 @@ ulong _beginthread(void( *start_address )( void * )
#endif
#endif /* __unix__ */
/****************************************************************************/
/* Win32 implementation of POSIX sem_getvalue() function */
/****************************************************************************/
#if defined(_WIN32)
int DLLCALL sem_getvalue(sem_t* psem, int* val)
{
if(psem==NULL || val==NULL)
return(-1);
if(WaitForSingleObject(*(psem),0)==WAIT_OBJECT_0)
*val=1;
else
*val=0;
return(0);
}
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment