Merge pull request #383 from mstorsjo/remove-unused-broken-function

Remove the broken WelsEventReset function
This commit is contained in:
volvet 2014-03-03 08:51:25 +08:00
commit 8c1ba34af8
2 changed files with 0 additions and 12 deletions

View File

@ -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

View File

@ -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