Changeset 67364 in vbox for trunk/src/VBox/Runtime/common/misc
- Timestamp:
- Jun 13, 2017 2:12:23 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/circbuf.cpp
r62477 r67364 5 5 6 6 /* 7 * Copyright (C) 2011-201 6Oracle Corporation7 * Copyright (C) 2011-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 148 148 } 149 149 150 RTDECL(size_t) RTCircBufOffsetRead(PRTCIRCBUF pBuf) 151 { 152 /* Validate input. */ 153 AssertPtrReturn(pBuf, 0); 154 155 return ASMAtomicReadZ(&pBuf->offRead); 156 } 157 158 RTDECL(size_t) RTCircBufOffsetWrite(PRTCIRCBUF pBuf) 159 { 160 /* Validate input. */ 161 AssertPtrReturn(pBuf, 0); 162 163 return ASMAtomicReadZ(&pBuf->offWrite); 164 } 165 150 166 RTDECL(void) RTCircBufAcquireReadBlock(PRTCIRCBUF pBuf, size_t cbReqSize, void **ppvStart, size_t *pcbSize) 151 167 {
Note:
See TracChangeset
for help on using the changeset viewer.