VirtualBox

Changeset 31331 in vbox for trunk/src/VBox/VMM/VM.cpp


Ignore:
Timestamp:
Aug 3, 2010 12:22:53 PM (14 years ago)
Author:
vboxsync
Message:

Added VMR3SetCpuPriority

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VM.cpp

    r31326 r31331  
    41044104}
    41054105
     4106
     4107/**
     4108 * Changes the VCPU priority.
     4109 *
     4110 * @returns VBox status code.
     4111 * @param   pVM             The VM to operate on.
     4112 * @param   ulCpuPriority   New CPU priority
     4113 */
     4114VMMR3DECL(int) VMR3SetCpuPriority(PVM pVM, unsigned ulCpuPriority)
     4115{
     4116    AssertReturn(ulCpuPriority > 0 && ulCpuPriority <= 100, VERR_INVALID_PARAMETER);
     4117    /* Note: not called from EMT. */
     4118    pVM->uCpuPriority = ulCpuPriority;
     4119    return VINF_SUCCESS;
     4120}
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