#include <ThBuffer.h>
Public Member Functions | |
| ThBuffer (unsigned int size, unsigned int alignment=16) | |
| file header. | |
| ~ThBuffer () | |
| unsigned int | GetSize () const |
| returns the size of the buffer, in bytes. | |
| void * | Acquire (bool wait=true) |
| public methods | |
| const void * | Acquire (bool wait=true) const |
| void | Release () const |
| ThSignal & | GetSignal () |
| unsigned int | GetWriteOffset () const |
| get the current write offset. | |
| void | AdvanceWriteOffset (unsigned int amount) |
File: ThBuffer.h Author: Kevin Bray Created: 09-01-08 Copyright © 2004 Bootstrap Studios. All rights reserved. project includes. class ThBuffer
Definition at line 19 of file ThBuffer.h.
| ThBuffer::ThBuffer | ( | unsigned int | size, | |
| unsigned int | alignment = 16 | |||
| ) |
file header.
File: ThBuffer.cpp Author: Kevin Bray Created: 09-01-08 Copyright © 2004 Bootstrap Studios. All rights reserved. class ThBuffer ctor & dtor
Definition at line 21 of file ThBuffer.cpp.
| ThBuffer::~ThBuffer | ( | ) |
Definition at line 30 of file ThBuffer.cpp.
| const void * ThBuffer::Acquire | ( | bool | wait = true |
) | const |
if we're supposed to wait, simply try to enter the section.
if we're not supposed to wait, try to enter the section. If we can't enter the section, return null.
return the buffer's pointer.
Definition at line 62 of file ThBuffer.cpp.
| void * ThBuffer::Acquire | ( | bool | wait = true |
) |
public methods
aquires access to the data. No one can access this data except for whoever acquired this buffer. All other accesses will block or return NULL.
if we're supposed to wait, simply try to enter the section.
if we're not supposed to wait, try to enter the section. If we can't enter the section, return null.
return the buffer's pointer.
Definition at line 42 of file ThBuffer.cpp.
| void ThBuffer::AdvanceWriteOffset | ( | unsigned int | amount | ) |
Definition at line 89 of file ThBuffer.cpp.
| ThSignal& ThBuffer::GetSignal | ( | ) | [inline] |
optional signal to indicate that can be used to indicate whether or not this buffer has been used.
Definition at line 37 of file ThBuffer.h.
| unsigned int ThBuffer::GetSize | ( | ) | const [inline] |
| unsigned int ThBuffer::GetWriteOffset | ( | ) | const [inline] |
| void ThBuffer::Release | ( | ) | const |
Definition at line 82 of file ThBuffer.cpp.


Follow the instructions in the command panel.
app is under development, don't hestiate to contact me for further questions. Thank you.