History

Merge pull request #407 from mstorsjo/do-blocking-wait

Do a blocking wait with WelsMultipleEventsWaitSingleBlocking

volvet committed 12 years ago

Commit 7150adc2 parents 8f981a4 cf07d611 file · +1 −3Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+1−3
@@ -3280,7 +3280,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo * pFbi, const SSou · 3279 unmodified lines
32803280
32813281 lwait = WelsMultipleEventsWaitSingleBlocking (iNumThreadsScheduled,
32823282 &pCtx->pSliceThreading->pSliceCodedEvent[0],
3283− 2); // 2 ms for one tick
3283+ (uint32_t) -1);
32843284 iEventId = (int32_t) (lwait - WELS_THREAD_ERROR_WAIT_OBJECT_0);
32853285 if (iEventId >= 0 && iEventId < iNumThreadsScheduled) {
32863286 if (iIndexOfSliceToBeCoded < iSliceCount) {
@@ -3293,8 +3293,6 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo * pFbi, const SSou · 6 unmodified lines
32933293 } else { // no other slices left for coding
32943294 -- iNumThreadsRunning;
32953295 }
3296− } else {
3297− WelsSleep (1);
32983296 }
32993297 #else
33003298 // TODO for pthread platforms

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