VirtualBox

Changeset 90969 in vbox for trunk/include


Ignore:
Timestamp:
Aug 27, 2021 10:12:22 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146608
Message:

IPRT/log: Defined the multibuffer flush protocol. bugref:10086

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/log.h

    r90865 r90969  
    197197 * Custom buffer flushing function.
    198198 *
    199  * @retval  true if flushed.
    200  * @retval  false if flushing pending on other thread and the logger should
    201  *          switch to the next buffer.  The other thread will call
    202  *          RTLogFlushDone when finished.
     199 * @retval  true if flushed and the buffer can be reused.
     200 * @retval  false for switching to the next buffer because an async flush of
     201 *          @a pBufDesc is still pending.  The implementation is responsible for
     202 *          only returning when the next buffer is ready for reuse, the generic
     203 *          logger code has no facility to make sure of this.
     204 *
    203205 * @param   pLogger     Pointer to the logger instance which is to be flushed.
    204206 * @param   pBufDesc    The descriptor of the buffer to be flushed.
     
    288290
    289291/** RTLOGBUFFERDESC::u32Magic value. (Avram Noam Chomsky) */
    290 # define RTLOGBUFFERDESC_MAGIC   UINT32_C(0x19281207)
     292#define RTLOGBUFFERDESC_MAGIC   UINT32_C(0x19281207)
    291293
    292294/**
     
    321323
    322324/** RTLOGGER::u32Magic value. (John Rogers Searle) */
    323 #define RTLOGGER_MAGIC      UINT32_C(0x19320731)
     325#define RTLOGGER_MAGIC          UINT32_C(0x19320731)
    324326
    325327/**
Note: See TracChangeset for help on using the changeset viewer.

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