#include <streams.h>
Inherits zlib_filter.

Public Member Functions | |
| sync_stream () | |
| void | destroy () |
| ~sync_stream () | |
| uint32_t | write (char *buf, int len) |
| uint32_t | getFree () |
Private Member Functions | |
| int | provideBuffer (int limit) |
Private Attributes | |
| char * | buffer |
| int | head |
| int | tail |
| sem_t | mutex |
| sem_t | notfull |
| sem_t | notempty |
| bool | wait_notfull |
| bool | wait_notempty |
| const int | buf_size |
| bool | failed |
Definition at line 49 of file streams.h.
| sync_stream::sync_stream | ( | ) |
Definition at line 30 of file streams.cpp.
| sync_stream::~sync_stream | ( | ) |
Definition at line 38 of file streams.cpp.
| void sync_stream::destroy | ( | ) |
Definition at line 45 of file streams.cpp.
| uint32_t sync_stream::getFree | ( | ) |
Definition at line 123 of file streams.cpp.
| int sync_stream::provideBuffer | ( | int | limit | ) | [private, virtual] |
Implements zlib_filter.
Definition at line 52 of file streams.cpp.
| uint32_t sync_stream::write | ( | char * | buf, | |
| int | len | |||
| ) |
Definition at line 87 of file streams.cpp.
const int sync_stream::buf_size [private] |
char* sync_stream::buffer [private] |
Reimplemented from zlib_filter.
bool sync_stream::failed [private] |
int sync_stream::head [private] |
sem_t sync_stream::mutex [private] |
sem_t sync_stream::notempty [private] |
sem_t sync_stream::notfull [private] |
int sync_stream::tail [private] |
bool sync_stream::wait_notempty [private] |
bool sync_stream::wait_notfull [private] |
1.6.3