History

change the output way of debug trace

sijchen committed 10 years ago

Commit 5eb18b11 parent cce1c292 files · +9 −9Browse files

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

Unified · Split

codec/common/src/WelsThreadPool.cpp+5−5
@@ -133,7 +133,7 @@ WELS_THREAD_ERROR_CODE CWelsThreadPool::Uninit() { · 132 unmodified lines
133133 }
134134
135135 void CWelsThreadPool::ExecuteTask() {
136− //printf("ThreadPool: schedule tasks\n");
136+ //fprintf(stdout, "ThreadPool: schedule tasks\n");
137137 CWelsTaskThread* pThread = NULL;
138138 IWelsTask* pTask = NULL;
139139 while (GetWaitedTaskNum() > 0) {
@@ -142,7 +142,7 @@ void CWelsThreadPool::ExecuteTask() { · 2 unmodified lines
142142 break;
143143 }
144144 pTask = GetWaitedTask();
145− //printf("ThreadPool: ExecuteTask = %x at thread %x\n", pTask, pThread);
145+ //fprintf(stdout, "ThreadPool: ExecuteTask = %x at thread %x\n", pTask, pThread);
146146 pThread->SetTask (pTask);
147147 }
148148 }
@@ -150,12 +150,12 @@ void CWelsThreadPool::ExecuteTask() { · 1 unmodified line
150150 WELS_THREAD_ERROR_CODE CWelsThreadPool::QueueTask (IWelsTask* pTask) {
151151 CWelsAutoLock cLock (m_cLockPool);
152152
153− //printf("ThreadPool: QueueTask = %x\n", pTask);
153+ //fprintf(stdout, "ThreadPool: QueueTask = %x\n", pTask);
154154 if (GetWaitedTaskNum() == 0) {
155155 CWelsTaskThread* pThread = GetIdleThread();
156156
157157 if (pThread != NULL) {
158− //printf("ThreadPool: ExecuteTask = %x\n", pTask);
158+ //fprintf(stdout, "ThreadPool: ExecuteTask = %x\n", pTask);
159159 pThread->SetTask (pTask);
160160
161161 return WELS_THREAD_ERROR_OK;
@@ -163,7 +163,7 @@ WELS_THREAD_ERROR_CODE CWelsThreadPool::QueueTask (IWelsTask* pTask) { · 1 unmodified line
163163 }
164164
165165 AddTaskToWaitedList (pTask);
166− //printf("ThreadPool: AddTaskToWaitedList: %x\n", pTask);
166+ //fprintf(stdout, "ThreadPool: AddTaskToWaitedList: %x\n", pTask);
167167 SignalThread();
168168 return WELS_THREAD_ERROR_OK;
169169 }

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