VirtualBox

Changeset 37210 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
May 25, 2011 9:55:16 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71906
Message:

circbuf: make the structure abstract.

File:
1 edited

Legend:

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

    r37209 r37210  
    3636
    3737
     38/*******************************************************************************
     39*   Structures and Typedefs                                                    *
     40*******************************************************************************/
     41/** @todo r=bird: this is missing docs and magic. uXPos should be offX.
     42 *        cbBufSize should be cbBuf. */
     43typedef struct RTCIRCBUF
     44{
     45    /** The current read position in the buffer. */
     46    size_t          uReadPos;
     47    /** The current write position in the buffer. */
     48    size_t          uWritePos;
     49    /** How much space of the buffer is currently in use. */
     50    volatile size_t cbBufUsed;
     51    /** How big is the buffer. */
     52    size_t          cbBufSize;
     53    /** The buffer itself. */
     54    void           *pvBuf;
     55} RTCIRCBUF;
     56
     57
     58
    3859RTDECL(int) RTCircBufCreate(PRTCIRCBUF *ppBuf, size_t cbSize)
    3960{
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