diff options
Diffstat (limited to 'src/pal/tests/palsuite/threading')
11 files changed, 15 insertions, 15 deletions
diff --git a/src/pal/tests/palsuite/threading/CreateThread/test2/test2.cpp b/src/pal/tests/palsuite/threading/CreateThread/test2/test2.cpp index 1ee410a6c5..34d3afbfb6 100644 --- a/src/pal/tests/palsuite/threading/CreateThread/test2/test2.cpp +++ b/src/pal/tests/palsuite/threading/CreateThread/test2/test2.cpp @@ -23,9 +23,9 @@ volatile DWORD dwThreadId1[NUM_TESTS]; DWORD PALAPI Thread( LPVOID lpParameter) { - dwThreadId1[(DWORD) lpParameter] = GetCurrentThreadId(); - bResult[(DWORD) lpParameter] = TRUE; - return (DWORD) lpParameter; + dwThreadId1[(DWORD)(SIZE_T)lpParameter] = GetCurrentThreadId(); + bResult[(DWORD)(SIZE_T) lpParameter] = TRUE; + return (DWORD)(SIZE_T) lpParameter; } struct testCase diff --git a/src/pal/tests/palsuite/threading/ExitThread/test1/test1.cpp b/src/pal/tests/palsuite/threading/ExitThread/test1/test1.cpp index caf1409406..9477633126 100644 --- a/src/pal/tests/palsuite/threading/ExitThread/test1/test1.cpp +++ b/src/pal/tests/palsuite/threading/ExitThread/test1/test1.cpp @@ -22,7 +22,7 @@ DWORD PALAPI ExitThreadTestThread( LPVOID lpParameter) DWORD dwRet = 0; /* Save parameter for test */ - dwExitThreadTestParameter = (DWORD)lpParameter; + dwExitThreadTestParameter = (DWORD)(SIZE_T)lpParameter; /* Call the ExitThread function */ ExitThread(dwRet); @@ -77,7 +77,7 @@ BOOL ExitThreadTest() /* Check to ensure that the parameter set in the Thread function is correct. */ - if (dwExitThreadTestParameter != (DWORD)lpParameter) + if (dwExitThreadTestParameter != (DWORD)(SIZE_T)lpParameter) { Trace("ERROR: The paramater passed should have been " "%d but turned up as %d.", diff --git a/src/pal/tests/palsuite/threading/ResumeThread/test1/test1.cpp b/src/pal/tests/palsuite/threading/ResumeThread/test1/test1.cpp index d2be262e4d..825064e23b 100644 --- a/src/pal/tests/palsuite/threading/ResumeThread/test1/test1.cpp +++ b/src/pal/tests/palsuite/threading/ResumeThread/test1/test1.cpp @@ -25,7 +25,7 @@ DWORD PALAPI ResumeThreadTestThread( LPVOID lpParameter) properly. */ - dwResumeThreadTestParameter = (DWORD)lpParameter; + dwResumeThreadTestParameter = (DWORD)(SIZE_T)lpParameter; return dwRet; } @@ -101,7 +101,7 @@ BOOL ResumeThreadTest() /* Check the param now and it should have been set. */ - if (dwResumeThreadTestParameter != (DWORD)lpParameter) + if (dwResumeThreadTestParameter != (DWORD)(SIZE_T)lpParameter) { Trace("ResumeThreadTest:parameter error\n"); } diff --git a/src/pal/tests/palsuite/threading/SleepEx/test2/test2.cpp b/src/pal/tests/palsuite/threading/SleepEx/test2/test2.cpp index c2ba4e704d..690acf5ce7 100644 --- a/src/pal/tests/palsuite/threading/SleepEx/test2/test2.cpp +++ b/src/pal/tests/palsuite/threading/SleepEx/test2/test2.cpp @@ -152,7 +152,7 @@ DWORD PALAPI SleeperProc(LPVOID lpParameter) BOOL Alertable; DWORD ret; - Alertable = (BOOL) lpParameter; + Alertable = (BOOL)(SIZE_T) lpParameter; LARGE_INTEGER performanceFrequency; if (!QueryPerformanceFrequency(&performanceFrequency)) diff --git a/src/pal/tests/palsuite/threading/SwitchToThread/test1/test1.cpp b/src/pal/tests/palsuite/threading/SwitchToThread/test1/test1.cpp index 76ecdd3572..ce03021b9e 100644 --- a/src/pal/tests/palsuite/threading/SwitchToThread/test1/test1.cpp +++ b/src/pal/tests/palsuite/threading/SwitchToThread/test1/test1.cpp @@ -83,7 +83,7 @@ INT __cdecl main( INT argc, CHAR **argv ) void PALAPI Run_Thread (LPVOID lpParam) { int i = 0; - int Id=(int)lpParam; + int Id=(int)(SIZE_T)lpParam; for(i=0; i < REPEAT_COUNT; i++ ) { diff --git a/src/pal/tests/palsuite/threading/WaitForMultipleObjectsEx/test2/test2.cpp b/src/pal/tests/palsuite/threading/WaitForMultipleObjectsEx/test2/test2.cpp index b2bc301128..ffa496dd82 100644 --- a/src/pal/tests/palsuite/threading/WaitForMultipleObjectsEx/test2/test2.cpp +++ b/src/pal/tests/palsuite/threading/WaitForMultipleObjectsEx/test2/test2.cpp @@ -146,7 +146,7 @@ DWORD PALAPI WaiterProc(LPVOID lpParameter) GetLastError()); } - Alertable = (BOOL) lpParameter; + Alertable = (BOOL)(SIZE_T) lpParameter; LARGE_INTEGER performanceFrequency; if (!QueryPerformanceFrequency(&performanceFrequency)) diff --git a/src/pal/tests/palsuite/threading/WaitForMultipleObjectsEx/test5/test5.cpp b/src/pal/tests/palsuite/threading/WaitForMultipleObjectsEx/test5/test5.cpp index a0216494ba..9d9e75b522 100644 --- a/src/pal/tests/palsuite/threading/WaitForMultipleObjectsEx/test5/test5.cpp +++ b/src/pal/tests/palsuite/threading/WaitForMultipleObjectsEx/test5/test5.cpp @@ -74,7 +74,7 @@ DWORD PALAPI WaitForProcess(LPVOID lpParameter) DWORD dwRet; HANDLE handles[MAX_HELPER_PROCESS+1]; - index = (DWORD) lpParameter; + index = (DWORD)(SIZE_T) lpParameter; /* The helper thread 0 will wait for helper process 0, helper thread 1 will wait for helper process 0 and 1, helper thread 2 will wait for helper diff --git a/src/pal/tests/palsuite/threading/WaitForMultipleObjectsEx/test6/test6.cpp b/src/pal/tests/palsuite/threading/WaitForMultipleObjectsEx/test6/test6.cpp index d5e3137899..1cec3492db 100644 --- a/src/pal/tests/palsuite/threading/WaitForMultipleObjectsEx/test6/test6.cpp +++ b/src/pal/tests/palsuite/threading/WaitForMultipleObjectsEx/test6/test6.cpp @@ -154,7 +154,7 @@ DWORD PALAPI TestThread(PVOID pArg) BOOL bRemoteWaitAll = g_bRemoteWaitAll; int iDesiredExitCode; - dwThreadNum = (DWORD)pArg; + dwThreadNum = (DWORD)(SIZE_T)pArg; sprintf_s (szTestName, 128, "Test6_%u", dwThreadNum); szTestName[127] = 0; diff --git a/src/pal/tests/palsuite/threading/WaitForSingleObject/WFSOExMutexTest/WFSOExMutexTest.cpp b/src/pal/tests/palsuite/threading/WaitForSingleObject/WFSOExMutexTest/WFSOExMutexTest.cpp index 3737f9cc10..f8fd7cbccc 100644 --- a/src/pal/tests/palsuite/threading/WaitForSingleObject/WFSOExMutexTest/WFSOExMutexTest.cpp +++ b/src/pal/tests/palsuite/threading/WaitForSingleObject/WFSOExMutexTest/WFSOExMutexTest.cpp @@ -178,7 +178,7 @@ DWORD PALAPI WaiterProc(LPVOID lpParameter) BOOL Alertable; DWORD ret; - Alertable = (BOOL) lpParameter; + Alertable = (BOOL)(SIZE_T) lpParameter; LARGE_INTEGER performanceFrequency; if (!QueryPerformanceFrequency(&performanceFrequency)) diff --git a/src/pal/tests/palsuite/threading/WaitForSingleObject/WFSOExSemaphoreTest/WFSOExSemaphoreTest.cpp b/src/pal/tests/palsuite/threading/WaitForSingleObject/WFSOExSemaphoreTest/WFSOExSemaphoreTest.cpp index 793c50995c..d8816a7b98 100644 --- a/src/pal/tests/palsuite/threading/WaitForSingleObject/WFSOExSemaphoreTest/WFSOExSemaphoreTest.cpp +++ b/src/pal/tests/palsuite/threading/WaitForSingleObject/WFSOExSemaphoreTest/WFSOExSemaphoreTest.cpp @@ -145,7 +145,7 @@ DWORD PALAPI WaiterProc(LPVOID lpParameter) GetLastError()); } - Alertable = (BOOL) lpParameter; + Alertable = (BOOL)(SIZE_T) lpParameter; OldTimeStamp = GetHighPrecisionTimeStamp(performanceFrequency); diff --git a/src/pal/tests/palsuite/threading/WaitForSingleObject/WFSOExThreadTest/WFSOExThreadTest.cpp b/src/pal/tests/palsuite/threading/WaitForSingleObject/WFSOExThreadTest/WFSOExThreadTest.cpp index 894d2804aa..a2c8850f79 100644 --- a/src/pal/tests/palsuite/threading/WaitForSingleObject/WFSOExThreadTest/WFSOExThreadTest.cpp +++ b/src/pal/tests/palsuite/threading/WaitForSingleObject/WFSOExThreadTest/WFSOExThreadTest.cpp @@ -153,7 +153,7 @@ satisfying any threads that were waiting on the object. "GetLastError returned %d\n", GetLastError()); } - Alertable = (BOOL) lpParameter; + Alertable = (BOOL)(SIZE_T) lpParameter; LARGE_INTEGER performanceFrequency; if (!QueryPerformanceFrequency(&performanceFrequency)) |