History

Add MinGW platform makefile and related source changes

V committed 12 years ago

Commit 7fa09901 parent e66b34814 files · +32 −28Browse files

Showing the changes to codec/encoder/core/src/slice_multi_threading.cpp (1 of 14 files). Show all

Unified · Split

codec/encoder/core/src/slice_multi_threading.cpp+4−4
@@ -41,7 +41,7 @@ · 40 unmodified lines
4141 #if defined(MT_ENABLED)
4242
4343 #include <assert.h>
44−#ifdef __GNUC__
44+#if defined(__GNUC__) && !defined(_WIN32)
4545 #include <semaphore.h>
4646 #ifndef SEM_NAME_MAX
4747 // length of semaphore name should be system constrained at least on mac 10.7
@@ -441,7 +441,7 @@ int32_t RequestMtResource (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPara · 393 unmodified lines
441441
442442 iIdx = 0;
443443 while (iIdx < iThreadNum) {
444−#ifdef __GNUC__ // for posix threading
444+#if defined(__GNUC__) && !defined(_WIN32) // for posix threading
445445 str_t name[SEM_NAME_MAX] = {0};
446446 int32_t used_len = 0;
447447 WELS_THREAD_ERROR_CODE err = 0;
@@ -852,7 +852,7 @@ int32_t WriteSliceBs (sWelsEncCtx* pCtx, uint8_t* pSliceBsBuf, const int32_t iSl · 404 unmodified lines
852852 }
853853
854854 #if defined(DYNAMIC_SLICE_ASSIGN) && defined(TRY_SLICING_BALANCE)
855−#if defined(__GNUC__)
855+#if defined(__GNUC__) && !defined(_WIN32)
856856 WELS_THREAD_ROUTINE_TYPE UpdateMbListThreadProc (void* arg) {
857857 SSliceThreadPrivateData* pPrivateData = (SSliceThreadPrivateData*)arg;
858858 sWelsEncCtx* pEncPEncCtx = NULL;
@@ -1243,7 +1243,7 @@ int32_t CreateSliceThreads (sWelsEncCtx* pCtx) { · 384 unmodified lines
12431243 // due to WelsMultipleEventsWaitSingleBlocking implememtation can not work well
12441244 // in case waiting pUpdateMbListEvent and pReadySliceCodingEvent events at the same time
12451245 #if defined(DYNAMIC_SLICE_ASSIGN) && defined(TRY_SLICING_BALANCE)
1246−#if defined(__GNUC__)
1246+#if defined(__GNUC__) && !defined(_WIN32)
12471247 WelsThreadCreate (&pCtx->pSliceThreading->pUpdateMbListThrdHandles[iIdx], UpdateMbListThreadProc,
12481248 &pCtx->pSliceThreading->pThreadPEncCtx[iIdx], 0);
12491249 #endif//__GNUC__

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