VirtualBox

Ignore:
Timestamp:
Jun 13, 2017 2:12:23 PM (8 years ago)
Author:
vboxsync
Message:

Audio: Forward ported r113728 (IPRT/CircBuf: Added RTCircBufOffsetRead() and RTCircBufOffsetWrite()) to trunk.

File:
1 edited

Legend:

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

    r62477 r67364  
    55
    66/*
    7  * Copyright (C) 2011-2016 Oracle Corporation
     7 * Copyright (C) 2011-2017 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    148148}
    149149
     150RTDECL(size_t) RTCircBufOffsetRead(PRTCIRCBUF pBuf)
     151{
     152    /* Validate input. */
     153    AssertPtrReturn(pBuf, 0);
     154
     155    return ASMAtomicReadZ(&pBuf->offRead);
     156}
     157
     158RTDECL(size_t) RTCircBufOffsetWrite(PRTCIRCBUF pBuf)
     159{
     160    /* Validate input. */
     161    AssertPtrReturn(pBuf, 0);
     162
     163    return ASMAtomicReadZ(&pBuf->offWrite);
     164}
     165
    150166RTDECL(void) RTCircBufAcquireReadBlock(PRTCIRCBUF pBuf, size_t cbReqSize, void **ppvStart, size_t *pcbSize)
    151167{
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