8232651: Add implementation of os::processor_id() for Windows
Reviewed-by: dholmes, stuefe
This commit is contained in:
parent
17a041119f
commit
cc72a06c3b
@ -795,6 +795,10 @@ int os::active_processor_count() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint os::processor_id() {
|
||||||
|
return (uint)GetCurrentProcessorNumber();
|
||||||
|
}
|
||||||
|
|
||||||
void os::set_native_thread_name(const char *name) {
|
void os::set_native_thread_name(const char *name) {
|
||||||
|
|
||||||
// See: http://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx
|
// See: http://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user