Changeset 50833 in webkit for trunk/JavaScriptCore
- Timestamp:
- Nov 11, 2009, 12:00:05 PM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r50791 r50833 1 2009-11-11 Laszlo Gombos <[email protected]> 2 3 Reviewed by Alexey Proskuryakov. 4 5 Refactor multiple JavaScriptCore threads 6 https://bugs.webkit.org/show_bug.cgi?id=31328 7 8 Remove the id field from the PlatformThread structure 9 as it is not used. 10 11 * runtime/Collector.cpp: 12 (JSC::getCurrentPlatformThread): 13 (JSC::suspendThread): 14 (JSC::resumeThread): 15 (JSC::getPlatformThreadRegisters): 16 1 17 2009-11-10 Geoffrey Garen <[email protected]> 2 18 -
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.