Changeset 50833 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Nov 11, 2009, 12:00:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Collector.cpp
r49955 r50833 119 119 typedef mach_port_t PlatformThread; 120 120 #elif PLATFORM(WIN_OS) 121 struct PlatformThread { 122 PlatformThread(DWORD _id, HANDLE _handle) : id(_id), handle(_handle) {} 123 DWORD id; 124 HANDLE handle; 125 }; 121 typedef HANDLE PlatformThread; 126 122 #endif 127 123 … … 647 643 return pthread_mach_thread_np(pthread_self()); 648 644 #elif PLATFORM(WIN_OS) 649 HANDLE threadHandle = pthread_getw32threadhandle_np(pthread_self()); 650 return PlatformThread(GetCurrentThreadId(), threadHandle); 645 return pthread_getw32threadhandle_np(pthread_self()); 651 646 #endif 652 647 } … … 812 807 thread_suspend(platformThread); 813 808 #elif PLATFORM(WIN_OS) 814 SuspendThread(platformThread .handle);809 SuspendThread(platformThread); 815 810 #else 816 811 #error Need a way to suspend threads on this platform … … 823 818 thread_resume(platformThread); 824 819 #elif PLATFORM(WIN_OS) 825 ResumeThread(platformThread .handle);820 ResumeThread(platformThread); 826 821 #else 827 822 #error Need a way to resume threads on this platform … … 887 882 #elif PLATFORM(WIN_OS) && PLATFORM(X86) 888 883 regs.ContextFlags = CONTEXT_INTEGER | CONTEXT_CONTROL | CONTEXT_SEGMENTS; 889 GetThreadContext(platformThread .handle, ®s);884 GetThreadContext(platformThread, ®s); 890 885 return sizeof(CONTEXT); 891 886 #else
Note:
See TracChangeset
for help on using the changeset viewer.