sync_stream Class Reference

#include <streams.h>

Inherits zlib_filter.

Collaboration diagram for sync_stream:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Definition at line 49 of file streams.h.


Constructor & Destructor Documentation

sync_stream::sync_stream (  ) 

Definition at line 30 of file streams.cpp.

sync_stream::~sync_stream (  ) 

Definition at line 38 of file streams.cpp.


Member Function Documentation

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.


Member Data Documentation

const int sync_stream::buf_size [private]

Definition at line 67 of file streams.h.

char* sync_stream::buffer [private]

Reimplemented from zlib_filter.

Definition at line 59 of file streams.h.

bool sync_stream::failed [private]

Definition at line 68 of file streams.h.

int sync_stream::head [private]

Definition at line 60 of file streams.h.

sem_t sync_stream::mutex [private]

Definition at line 62 of file streams.h.

sem_t sync_stream::notempty [private]

Definition at line 64 of file streams.h.

sem_t sync_stream::notfull [private]

Definition at line 63 of file streams.h.

int sync_stream::tail [private]

Definition at line 61 of file streams.h.

Definition at line 66 of file streams.h.

bool sync_stream::wait_notfull [private]

Definition at line 65 of file streams.h.


The documentation for this class was generated from the following files:
Generated on Tue Aug 24 19:50:35 2010 for Lightspark by  doxygen 1.6.3