Merge pull request #383 from mstorsjo/remove-unused-broken-function
Remove the broken WelsEventReset function
This commit is contained in:
commit
8c1ba34af8
@ -108,12 +108,6 @@ WELS_THREAD_ERROR_CODE WelsEventSignal (WELS_EVENT* event) {
|
||||
return WELS_THREAD_ERROR_GENERAL;
|
||||
}
|
||||
|
||||
WELS_THREAD_ERROR_CODE WelsEventReset (WELS_EVENT* event) {
|
||||
if (ResetEvent (*event))
|
||||
return WELS_THREAD_ERROR_OK;
|
||||
return WELS_THREAD_ERROR_GENERAL;
|
||||
}
|
||||
|
||||
WELS_THREAD_ERROR_CODE WelsEventWait (WELS_EVENT* event) {
|
||||
return WaitForSingleObject (*event, INFINITE);
|
||||
}
|
||||
@ -297,11 +291,6 @@ WELS_THREAD_ERROR_CODE WelsEventSignal (WELS_EVENT* event) {
|
||||
// fprintf( stderr, "after signal it, val= %d..\n",val );
|
||||
return err;
|
||||
}
|
||||
WELS_THREAD_ERROR_CODE WelsEventReset (WELS_EVENT* event) {
|
||||
// FIXME for posix event reset, seems not be supported for pthread??
|
||||
sem_close (event);
|
||||
return sem_init (event, 0, 0);
|
||||
}
|
||||
|
||||
WELS_THREAD_ERROR_CODE WelsEventWait (WELS_EVENT* event) {
|
||||
return sem_wait (event); // blocking until signaled
|
||||
|
@ -116,7 +116,6 @@ WELS_THREAD_ERROR_CODE WelsEventClose (WELS_EVENT* event, char* event_name);
|
||||
WELS_THREAD_ERROR_CODE WelsEventInit (WELS_EVENT* event);
|
||||
WELS_THREAD_ERROR_CODE WelsEventDestroy (WELS_EVENT* event);
|
||||
WELS_THREAD_ERROR_CODE WelsEventSignal (WELS_EVENT* event);
|
||||
WELS_THREAD_ERROR_CODE WelsEventReset (WELS_EVENT* event);
|
||||
WELS_THREAD_ERROR_CODE WelsEventWait (WELS_EVENT* event);
|
||||
WELS_THREAD_ERROR_CODE WelsEventWaitWithTimeOut (WELS_EVENT* event, uint32_t dwMilliseconds);
|
||||
#ifdef _WIN32
|
||||
|
Loading…
Reference in New Issue
Block a user