History

Convert tabs to spaces before comments

Martin Storsjö committed 11 years ago

Commit 78e0ec61 parent 3052b7a57 files · +278 −278Browse files

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

Unified · Split

codec/common/src/WelsThreadLib.cpp+7−7
@@ -299,12 +299,12 @@ WELS_THREAD_ERROR_CODE WelsEventOpen (WELS_EVENT* p_event, const char* event_ · 298 unmodified lines
299299 }
300300 WELS_THREAD_ERROR_CODE WelsEventClose (WELS_EVENT* event, const char* event_name) {
301301 #ifdef __APPLE__
302− WELS_THREAD_ERROR_CODE err = sem_close (*event); // match with sem_open
302+ WELS_THREAD_ERROR_CODE err = sem_close (*event); // match with sem_open
303303 if (event_name)
304304 sem_unlink (event_name);
305305 return err;
306306 #else
307− WELS_THREAD_ERROR_CODE err = sem_destroy (*event); // match with sem_init
307+ WELS_THREAD_ERROR_CODE err = sem_destroy (*event); // match with sem_init
308308 free (*event);
309309 return err;
310310 #endif
@@ -322,7 +322,7 @@ WELS_THREAD_ERROR_CODE WelsEventSignal (WELS_EVENT* event) { · 11 unmodified lines
322322 }
323323
324324 WELS_THREAD_ERROR_CODE WelsEventWait (WELS_EVENT* event) {
325− return sem_wait (*event); // blocking until signaled
325+ return sem_wait (*event); // blocking until signaled
326326 }
327327
328328 WELS_THREAD_ERROR_CODE WelsEventWaitWithTimeOut (WELS_EVENT* event, uint32_t dwMilliseconds) {
@@ -360,7 +360,7 @@ WELS_THREAD_ERROR_CODE WelsEventWaitWithTimeOut (WELS_EVENT* event, uint32_t · 31 unmodified lines
360360 WELS_THREAD_ERROR_CODE WelsMultipleEventsWaitSingleBlocking (uint32_t nCount,
361361 WELS_EVENT* event_list, WELS_EVENT* master_event) {
362362 uint32_t nIdx = 0;
363− uint32_t uiAccessTime = 2; // 2 us once
363+ uint32_t uiAccessTime = 2; // 2 us once
364364
365365 if (nCount == 0)
366366 return WELS_THREAD_ERROR_WAIT_FAILED;
@@ -378,7 +378,7 @@ WELS_THREAD_ERROR_CODE WelsMultipleEventsWaitSingleBlocking (uint32_t nCount, · 11 unmodified lines
378378 }
379379
380380 while (1) {
381− nIdx = 0; // access each event by order
381+ nIdx = 0; // access each event by order
382382 while (nIdx < nCount) {
383383 int32_t err = 0;
384384 int32_t wait_count = 0;
@@ -399,7 +399,7 @@ WELS_THREAD_ERROR_CODE WelsMultipleEventsWaitSingleBlocking (uint32_t nCount, · 14 unmodified lines
399399 // we do need access next event next time
400400 ++ nIdx;
401401 }
402− usleep (1); // switch to working threads
402+ usleep (1); // switch to working threads
403403 if (master_event != NULL) {
404404 // A master event was used and was signalled, but none of the events in the
405405 // list was found to be signalled, thus wait a little more when rechecking
@@ -423,7 +423,7 @@ WELS_THREAD_ERROR_CODE WelsMultipleEventsWaitAllBlocking (uint32_t nCount, · 17 unmodified lines
423423 return WELS_THREAD_ERROR_WAIT_FAILED;
424424
425425 while (1) {
426− nIdx = 0; // access each event by order
426+ nIdx = 0; // access each event by order
427427 while (nIdx < nCount) {
428428 const uint32_t kuiBitwiseFlag = (1 << nIdx);
429429

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