Showing the changes to codec/common/src/WelsThreadLib.cpp (1 of 15 files). Show all
Unified · Split
| @@ -313,6 +313,7 @@ WELS_THREAD_ERROR_CODE WelsEventOpen (WELS_EVENT* p_event, const char* event_ · 312 unmodified lines | |||
| 313 | *p_event = NULL; | 313 | *p_event = NULL; |
| 314 | return WELS_THREAD_ERROR_GENERAL; | 314 | return WELS_THREAD_ERROR_GENERAL; |
| 315 | } else { | 315 | } else { |
| 316 | //printf("event_open:%x, %s\n", p_event, event_name); | ||
| 316 | return WELS_THREAD_ERROR_OK; | 317 | return WELS_THREAD_ERROR_OK; |
| 317 | } | 318 | } |
| 318 | #else | 319 | #else |
| @@ -329,6 +330,7 @@ WELS_THREAD_ERROR_CODE WelsEventOpen (WELS_EVENT* p_event, const char* event_ · 10 unmodified lines | |||
| 329 | #endif | 330 | #endif |
| 330 | } | 331 | } |
| 331 | WELS_THREAD_ERROR_CODE WelsEventClose (WELS_EVENT* event, const char* event_name) { | 332 | WELS_THREAD_ERROR_CODE WelsEventClose (WELS_EVENT* event, const char* event_name) { |
| 333 | //printf("event_close:%x, %s\n", event, event_name); | ||
| 332 | #ifdef __APPLE__ | 334 | #ifdef __APPLE__ |
| 333 | WELS_THREAD_ERROR_CODE err = sem_close (*event); // match with sem_open | 335 | WELS_THREAD_ERROR_CODE err = sem_close (*event); // match with sem_open |
| 334 | if (event_name) | 336 | if (event_name) |