VirtualBox

Ignore:
Timestamp:
Mar 5, 2009 2:54:49 PM (16 years ago)
Author:
vboxsync
Message:

Don't flush so often

File:
1 edited

Legend:

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

    r14435 r17405  
    18281828            /* how much */
    18291829            size_t cb = sizeof(pLogger->achScratch) - pLogger->offScratch - 1;
     1830
     1831            /*
     1832             * Flush the buffer if there isn't enough room.
     1833             */
     1834            if (cb < cbChars)
     1835            {
     1836                rtlogFlush(pLogger);
     1837                cb = sizeof(pLogger->achScratch) - pLogger->offScratch - 1;
     1838            }
    18301839            if (cb > cbChars)
    18311840                cb = cbChars;
     
    18441853
    18451854            pachChars += cb;
    1846 
    1847             /* flush */
    1848             rtlogFlush(pLogger);
    18491855        }
    18501856
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