Deferred Processing


Typedefs

typedef void(* DeferredProcessor_t )(void *)
 Function pointer to a function to be called by the deferred processing thread.

Functions

int DeferredProcessingInit (void)
 Initialise the deferred processing module.
void DeferredProcessingDeinit (void)
 Deinitialise the deferred processing module.
void DeferredProcessingAddJob (DeferredProcessor_t processor, void *arg)
 Add a job to the queue of jobs to be executed in the deferred processing thread.

Function Documentation

void DeferredProcessingAddJob ( DeferredProcessor_t  processor,
void *  arg 
)

Add a job to the queue of jobs to be executed in the deferred processing thread.

The function pointed to by processor will be called at an indeterminate time with the argument specified by arg.

Parameters:
processor Function pointer to function to call in the deferred processing thread.
arg Argument to be passed to processor when called. This must have been allocated using the Object memory system as the reference count will be incremented on adding to the queue and decremented if the job is still on the queue when the module is deinitialised.

void DeferredProcessingDeinit ( void   ) 

Deinitialise the deferred processing module.

Any job waiting to be processed will be dropped.

int DeferredProcessingInit ( void   ) 

Initialise the deferred processing module.

Returns:
0 on success.


Generated on Thu Jun 26 12:58:31 2008 for DVBStreamer by  doxygen 1.5.5