VirtualBox

Ignore:
Timestamp:
Nov 5, 2008 2:42:54 AM (16 years ago)
Author:
vboxsync
Message:

s/ELEMENTS/RT_ELEMENTS/g - retiring ELEMENTS (finally).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/thread.cpp

    r11596 r13836  
    721721
    722722/**
    723  * Create a new thread. 
    724  * 
     723 * Create a new thread.
     724 *
    725725 * Same as RTThreadCreate except the name is given in the RTStrPrintfV form.
    726726 *
     
    745745
    746746/**
    747  * Create a new thread. 
    748  * 
     747 * Create a new thread.
     748 *
    749749 * Same as RTThreadCreate except the name is given in the RTStrPrintf form.
    750750 *
     
    13821382        if (iEntry && pCur == pThread)
    13831383            break;
    1384         for (unsigned i = 0; i < ELEMENTS(apSeenThreads); i++)
     1384        for (unsigned i = 0; i < RT_ELEMENTS(apSeenThreads); i++)
    13851385            if (apSeenThreads[i] == pCur)
    13861386            {
     
    13931393         * Advance to the next thread.
    13941394         */
    1395         iSeenThread = (iSeenThread + 1) % ELEMENTS(apSeenThreads);
     1395        iSeenThread = (iSeenThread + 1) % RT_ELEMENTS(apSeenThreads);
    13961396        apSeenThreads[iSeenThread] = pCur;
    13971397        pCur = pNext;
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