third_party/virtualbox/src/VBox/Runtime/common/misc/thread.cpp
/**
 * Recalculates scheduling attributes for the default process
 * priority using the specified priority type for the calling thread.
 *
 * The scheduling attributes are targeted at threads and they are protected
 * by the thread read-write semaphore, that's why RTProc is forwarding the
 * operation to RTThread.
 *
 * @returns iprt status code.
 * @remarks Will only work for strict builds.
 */
Recalculates scheduling attributes for the default process
priority using the specified priority type for the calling thread.

The scheduling attributes are targeted at threads and they are protected
by the thread read-write semaphore, that's why RTProc is forwarding the
operation to RTThread.

@returns iprt status code.
@remarks Will only work for strict builds.
Recalculates scheduling attributes for the default process priority using the specified priority type for the calling thread . The scheduling attributes are targeted at threads and they are protected by the thread read - write semaphore that ' s why RTProc is forwarding the operation to RTThread . @returns iprt status code . @remarks Will only work for strict builds .
int rtThreadDoCalcDefaultPriority(RTTHREADTYPE enmType)
{
    RT_THREAD_LOCK_RW();
    int rc = rtSchedNativeCalcDefaultPriority(enmType);
    RT_THREAD_UNLOCK_RW();
    return rc;
}
int rtThreadDoCalcDefaultPriority ( RTTHREADTYPE enmType ) { RT_THREAD_LOCK_RW ( ) ; int rc = rtSchedNativeCalcDefaultPriority ( enmType ) ; RT_THREAD_UNLOCK_RW ( ) ; return rc ; }
Recalculates scheduling attributes for the default process
 priority using the specified priority type for the calling thread.
Recalculates scheduling attributes for the default process priority using the specified priority type for the calling thread .