Skip to content
Snippets Groups Projects
Commit 2434cd3f authored by rswindell's avatar rswindell
Browse files

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

parent a172a8fc
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment