Lines Matching refs:winData
33 SkThread_WinData* winData = static_cast<SkThread_WinData*>(data); in thread_start() local
36 if (WaitForSingleObject(winData->fCancelEvent, 0) == WAIT_OBJECT_0) { in thread_start()
40 winData->fEntryPoint(winData->fParam); in thread_start()
45 SkThread_WinData* winData = new SkThread_WinData(entryPoint, data); in SkThread() local
46 fData = winData; in SkThread()
48 if (nullptr == winData->fCancelEvent) { in SkThread()
52 winData->fHandle = CreateThread( in SkThread()
56 winData, // argument to thread function (proxy args) in SkThread()
58 &winData->fThreadId); // returns the thread identifier in SkThread()
63 SkThread_WinData* winData = static_cast<SkThread_WinData*>(fData); in ~SkThread() local
65 if (winData->fHandle != nullptr && !winData->fStarted) { in ~SkThread()
66 if (SetEvent(winData->fCancelEvent) != 0) { in ~SkThread()
72 TerminateThread(winData->fHandle, -1); in ~SkThread()
75 delete winData; in ~SkThread()
80 SkThread_WinData* winData = static_cast<SkThread_WinData*>(fData); in start() local
81 if (nullptr == winData->fHandle) { in start()
85 if (winData->fStarted) { in start()
88 winData->fStarted = -1 != ResumeThread(winData->fHandle); in start()
89 return winData->fStarted; in start()
93 SkThread_WinData* winData = static_cast<SkThread_WinData*>(fData); in join() local
94 if (nullptr == winData->fHandle || !winData->fStarted) { in join()
98 WaitForSingleObject(winData->fHandle, INFINITE); in join()