FIFOBuffer::read(T*, std::size_t) documentation inaccurate #869, part II

This commit is contained in:
Aleksandar Fabijanic
2015-06-23 21:04:59 -05:00
parent cc9fb56705
commit 22bb363260

View File

@@ -179,7 +179,7 @@ public:
/// preallocated to at least the length size /// preallocated to at least the length size
/// before calling this function. /// before calling this function.
/// ///
/// Returns the reference to the buffer. /// Returns the size of the copied data.
{ {
if (0 == length) return 0; if (0 == length) return 0;
Mutex::ScopedLock lock(_mutex); Mutex::ScopedLock lock(_mutex);
@@ -202,7 +202,7 @@ public:
/// Resizes the supplied buffer to the size of /// Resizes the supplied buffer to the size of
/// data written to it. /// data written to it.
/// ///
/// Returns the reference to the buffer. /// Returns the size of the copied data.
{ {
Mutex::ScopedLock lock(_mutex); Mutex::ScopedLock lock(_mutex);
if (!isReadable()) return 0; if (!isReadable()) return 0;