Ignore:
Timestamp:
12/29/12 10:24:28 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Renamed BufferedWaitable to BufferedStream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/xplcommon/posix/WritingBuffer.h

    r6 r16  
    3232//------------------------------------------------------------------------------
    3333
    34 #include "WaitableBuffer.h"
     34#include "StreamBuffer.h"
    3535
    3636//------------------------------------------------------------------------------
     
    4747 * has been written. In that case the buffer is automatically emptied.
    4848 */
    49 class WritingBuffer : public WaitableBuffer
     49class WritingBuffer : public StreamBuffer
    5050{
    5151private:
     
    5959     * Construct the buffer.
    6060     */
    61     WritingBuffer(size_t capacity, BufferedWaitable* waitable);
     61    WritingBuffer(size_t capacity, BufferedStream* stream);
    6262
    6363public:
     
    6969    /**
    7070     * Write the contents of the buffer using the associated buffered
    71      * waitable.
     71     * stream.
    7272     *
    7373     * If the buffer is empty, the function returns indicating
     
    7979     * If not everything can be written and the write operation
    8080     * indicates that it would block, this function returns failure
    81      * after the waitable has been set up  to handle the corresponding
     81     * after the stream has been set up  to handle the corresponding
    8282     * poll events.
    8383     *
     
    8888    bool write();
    8989
    90     friend class BufferedWaitable;
     90    friend class BufferedStream;
    9191};
    9292
     
    9595//------------------------------------------------------------------------------
    9696
    97 inline WritingBuffer::WritingBuffer(size_t capacity,
    98                                     BufferedWaitable* waitable):
    99     WaitableBuffer(capacity, waitable),
     97inline WritingBuffer::WritingBuffer(size_t capacity, BufferedStream* stream):
     98    StreamBuffer(capacity, stream),
    10099    offset(0)
    101100{
Note: See TracChangeset for help on using the changeset viewer.