BufferFillingHelper Class Reference

#include <BufferFillingHelper.h>

List of all members.

Public Member Functions

 BufferFillingHelper (void)
 ~BufferFillingHelper (void)

Static Public Member Functions

static unsigned int __stdcall fillBufferSegments (void *params)
static void * fillBufferSegmentsVoid (void *params)
static void multithreadFill (Quad2f *quads, unsigned int numThreads, unsigned int offset, unsigned int nQuadsAdjustment)

Classes

struct  ArrayQuad2f
struct  Quad2f


Detailed Description

This class provides types and methods that help filling a buffer. It includes methods that fill a buffer using multithreading (based on the multithreading used in the original version of the framework by T. Isenberg and A. Miede).

Author:
Fabricio Anastacio - fabriciocfa@yahoo.com
Since:
October 11, 2007


Constructor & Destructor Documentation

BufferFillingHelper::BufferFillingHelper ( void   ) 

Constructs a buffer filling helper.

BufferFillingHelper::~BufferFillingHelper ( void   ) 

Destroys this buffer filling object.


Member Function Documentation

unsigned int __stdcall BufferFillingHelper::fillBufferSegments ( void *  params  )  [static]

Fills the buffer segments with an array of quads passed as parameter. It is meant to be called in a separate thread.

Parameters:
params the array of quads to be filled.

void * BufferFillingHelper::fillBufferSegmentsVoid ( void *  params  )  [static]

Utility wrapper method which calls fillBufferSegments(void*), except the returned variable is discarded. This method was created for use with pthreads.

Parameters:
params the array of quads to be filled.

void BufferFillingHelper::multithreadFill ( Quad2f quads,
unsigned int  numThreads,
unsigned int  offset,
unsigned int  nQuadsAdjustment 
) [static]

Fills a buffer with the values given by the array of quads using multithreading.

Parameters:
quads the array of quads to be filled.
numThreads the number of threads to be created.
offset the offset in the quads array for the data to be used for each thread.
nQuadsAdjustment the adjustment done to the number of quads for the last thread.


The documentation for this class was generated from the following files:
Generated on Fri Dec 21 17:46:06 2007 for LargeDisplayFrameworkToolkit by  doxygen 1.5.2