msvcp140: Implement _Thrd_hardware_concurrency.
Signed-off-by: Daniel Lehman <dlehman@esri.com> Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f7b88bc545
commit
04bb658f0a
|
@ -3725,7 +3725,7 @@
|
|||
@ cdecl _Thrd_detach(ptr) msvcp110._Thrd_detach
|
||||
@ cdecl _Thrd_equal(ptr ptr) _Thrd_equal
|
||||
@ stub _Thrd_exit
|
||||
@ stub _Thrd_hardware_concurrency
|
||||
@ cdecl _Thrd_hardware_concurrency() _Thrd_hardware_concurrency
|
||||
@ stub _Thrd_id
|
||||
@ cdecl _Thrd_join(ptr long) _Thrd_join
|
||||
@ cdecl _Thrd_sleep(ptr) _Thrd_sleep
|
||||
|
|
|
@ -942,6 +942,22 @@ DEFINE_RTTI_DATA0(_Pad, 0, ".?AV_Pad@std@@")
|
|||
/* ??_7_Pad@std@@6B@ */
|
||||
extern const vtable_ptr MSVCP__Pad_vtable;
|
||||
|
||||
unsigned int __cdecl _Thrd_hardware_concurrency(void)
|
||||
{
|
||||
static unsigned int val = -1;
|
||||
|
||||
TRACE("()\n");
|
||||
|
||||
if(val == -1) {
|
||||
SYSTEM_INFO si;
|
||||
|
||||
GetSystemInfo(&si);
|
||||
val = si.dwNumberOfProcessors;
|
||||
}
|
||||
|
||||
return val;
|
||||
}
|
||||
|
||||
/* ??0_Pad@std@@QAE@XZ */
|
||||
/* ??0_Pad@std@@QEAA@XZ */
|
||||
DEFINE_THISCALL_WRAPPER(_Pad_ctor, 4)
|
||||
|
|
Loading…
Reference in New Issue