AWS SDK for C++  1.9.159
AWS SDK for C++
Public Member Functions | Protected Member Functions | List of all members
Aws::Utils::Stream::ConcurrentStreamBuf Class Reference

#include <ConcurrentStreamBuf.h>

+ Inheritance diagram for Aws::Utils::Stream::ConcurrentStreamBuf:

Public Member Functions

 ConcurrentStreamBuf (size_t bufferLength=4 *1024)
 
void SetEof ()
 

Protected Member Functions

std::streampos seekoff (std::streamoff off, std::ios_base::seekdir dir, std::ios_base::openmode which=std::ios_base::in|std::ios_base::out) override
 
std::streampos seekpos (std::streampos pos, std::ios_base::openmode which=std::ios_base::in|std::ios_base::out) override
 
int underflow () override
 
int overflow (int ch) override
 
int sync () override
 
std::streamsize showmanyc () override
 
void FlushPutArea ()
 

Detailed Description

A thread-safe streambuf implementation that allows simultaneous reading and writing. NOTE: iostreams maintain state for readers and writers. This means that you can have at most two concurrent threads, one for reading and one for writing. Multiple readers or multiple writers are not thread-safe and will result in race-conditions.

Definition at line 29 of file ConcurrentStreamBuf.h.

Constructor & Destructor Documentation

◆ ConcurrentStreamBuf()

Aws::Utils::Stream::ConcurrentStreamBuf::ConcurrentStreamBuf ( size_t  bufferLength = 4 *1024)
explicit

Member Function Documentation

◆ FlushPutArea()

void Aws::Utils::Stream::ConcurrentStreamBuf::FlushPutArea ( )
protected

◆ overflow()

int Aws::Utils::Stream::ConcurrentStreamBuf::overflow ( int  ch)
overrideprotected

◆ seekoff()

std::streampos Aws::Utils::Stream::ConcurrentStreamBuf::seekoff ( std::streamoff  off,
std::ios_base::seekdir  dir,
std::ios_base::openmode  which = std::ios_base::in|std::ios_base::out 
)
overrideprotected

◆ seekpos()

std::streampos Aws::Utils::Stream::ConcurrentStreamBuf::seekpos ( std::streampos  pos,
std::ios_base::openmode  which = std::ios_base::in|std::ios_base::out 
)
overrideprotected

◆ SetEof()

void Aws::Utils::Stream::ConcurrentStreamBuf::SetEof ( )

◆ showmanyc()

std::streamsize Aws::Utils::Stream::ConcurrentStreamBuf::showmanyc ( )
overrideprotected

◆ sync()

int Aws::Utils::Stream::ConcurrentStreamBuf::sync ( )
overrideprotected

◆ underflow()

int Aws::Utils::Stream::ConcurrentStreamBuf::underflow ( )
overrideprotected

The documentation for this class was generated from the following file: