VirtualBox

Changeset 29615 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 18, 2010 11:54:24 AM (15 years ago)
Author:
vboxsync
Message:

Main: implemented IHost::GetProcessorCoreCount()

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HostImpl.cpp

    r29385 r29615  
    765765    *aCount = RTMpGetOnlineCount();
    766766    return S_OK;
     767}
     768
     769/**
     770 * Returns the number of installed physical processor cores.
     771 *
     772 * @returns COM status code
     773 * @param   count address of result variable
     774 */
     775STDMETHODIMP Host::COMGETTER(ProcessorCoreCount)(ULONG *aCount)
     776{
     777    CheckComArgOutPointerValid(aCount);
     778    // no locking required
     779
     780    return E_NOTIMPL;
    767781}
    768782
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r29591 r29615  
    76667666    </attribute>
    76677667
     7668    <attribute name="processorCoreCount" type="unsigned long" readonly="yes">
     7669      <desc>Number of physical processor cores installed in the host system.</desc>
     7670    </attribute>
     7671
    76687672    <method name="getProcessorSpeed">
    76697673      <desc>Query the (approximate) maximum speed of a specified host CPU in
  • trunk/src/VBox/Main/include/HostImpl.h

    r28800 r29615  
    6767    STDMETHOD(COMGETTER(ProcessorCount))(ULONG *count);
    6868    STDMETHOD(COMGETTER(ProcessorOnlineCount))(ULONG *count);
     69    STDMETHOD(COMGETTER(ProcessorCoreCount))(ULONG *count);
    6970    STDMETHOD(GetProcessorSpeed)(ULONG cpuId, ULONG *speed);
    7071    STDMETHOD(GetProcessorDescription)(ULONG cpuId, BSTR *description);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette