gint vortex_semaphore_get_status VortexSemaphore sem  ) 
 

Gets the current semaphore status.

Returns actual semaphore status.

Parameters:
sem the semaphore to check the status.
Returns:
semaphore status or -1 if fails