History

use pthread_condition instead of semaphores on apple platform

Karina committed 10 years ago

Commit c12b88a1 parent 30328b810 files · +108 −146Browse files

Showing the changes to codec/common/src/WelsTaskThread.cpp (1 of 10 files). Show all

Unified · Split

codec/common/src/WelsTaskThread.cpp+2−2
@@ -75,9 +75,9 @@ WELS_THREAD_ERROR_CODE CWelsTaskThread::SetTask (WelsCommon::IWelsTask* pTask) { · 74 unmodified lines
7575 if (!GetRunning()) {
7676 return WELS_THREAD_ERROR_GENERAL;
7777 }
78−
78+ WelsMutexLock(&m_hMutex);
7979 m_pTask = pTask;
80−
80+ WelsMutexUnlock(&m_hMutex);
8181 SignalThread();
8282
8383 return WELS_THREAD_ERROR_OK;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t