Changeset 48765 in vbox for trunk/src/VBox/Main
- Timestamp:
- Sep 30, 2013 8:51:08 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 89402
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r48715 r48765 8419 8419 </attribute> 8420 8420 8421 <attribute name="processorOnlineCoreCount" type="unsigned long" readonly="yes"> 8422 <desc>Number of physical processor cores online in the host system.</desc> 8423 </attribute> 8424 8421 8425 <method name="getProcessorSpeed"> 8422 8426 <desc>Query the (approximate) maximum speed of a specified host CPU in -
trunk/src/VBox/Main/include/HostImpl.h
r48607 r48765 68 68 STDMETHOD(COMGETTER(ProcessorOnlineCount))(ULONG *count); 69 69 STDMETHOD(COMGETTER(ProcessorCoreCount))(ULONG *count); 70 STDMETHOD(COMGETTER(ProcessorOnlineCoreCount))(ULONG *count); 70 71 STDMETHOD(GetProcessorSpeed)(ULONG cpuId, ULONG *speed); 71 72 STDMETHOD(GetProcessorDescription)(ULONG cpuId, BSTR *description); -
trunk/src/VBox/Main/src-server/HostImpl.cpp
r48607 r48765 956 956 // no locking required 957 957 958 return E_NOTIMPL; 958 *aCount = RTMpGetPresentCoreCount(); 959 return S_OK; 960 } 961 962 /** 963 * Returns the number of installed physical processor cores. 964 * 965 * @returns COM status code 966 * @param count address of result variable 967 */ 968 STDMETHODIMP Host::COMGETTER(ProcessorOnlineCoreCount)(ULONG *aCount) 969 { 970 CheckComArgOutPointerValid(aCount); 971 // no locking required 972 973 *aCount = RTMpGetOnlineCoreCount(); 974 return S_OK; 959 975 } 960 976
Note:
See TracChangeset
for help on using the changeset viewer.