Added doxygen comments for all relevant headers in io.

This commit is contained in:
crs
2002-07-28 17:25:13 +00:00
parent 24d54fca53
commit b8ce70d0f0
10 changed files with 242 additions and 77 deletions

View File

@@ -9,9 +9,10 @@
// CBufferedOutputStream
//
CBufferedOutputStream::CBufferedOutputStream(CMutex* mutex, IJob* closeCB) :
CBufferedOutputStream::CBufferedOutputStream(
CMutex* mutex, IJob* adoptedCloseCB) :
m_mutex(mutex),
m_closeCB(closeCB),
m_closeCB(adoptedCloseCB),
m_empty(mutex, true),
m_closed(false)
{
@@ -54,20 +55,20 @@ CBufferedOutputStream::close()
m_closed = true;
m_buffer.pop(m_buffer.getSize());
if (m_closeCB) {
if (m_closeCB != NULL) {
m_closeCB->run();
}
}
UInt32
CBufferedOutputStream::write(const void* data, UInt32 n)
CBufferedOutputStream::write(const void* buffer, UInt32 n)
{
CLock lock(m_mutex);
if (m_closed) {
throw XIOClosed();
}
m_buffer.write(data, n);
m_buffer.write(buffer, n);
return n;
}