MediaProcessors
Public Attributes | List of all members
procs_reg_elem_s Struct Reference
Collaboration diagram for procs_reg_elem_s:
Collaboration graph
[legend]

Public Attributes

pthread_mutex_t api_mutex
 
fair_lock_tfair_lock_io_array [PROC_IO_NUM]
 
proc_ctx_tproc_ctx
 

Detailed Description

Processors registration structure.

Definition at line 135 of file procs.c.

Member Data Documentation

pthread_mutex_t procs_reg_elem_s::api_mutex

Processor's API mutual exclusion lock. This lock is used to provide a critical section for external applications to be able to use the processor's API concurrently and asynchronously on any of the registered processor instances. Processor's API options are available through the function 'proc_opt()' (see .proc.h). This lock is initialized when opening this module, and is kept through the whole life of the module.

Definition at line 146 of file procs.c.

fair_lock_t* procs_reg_elem_s::fair_lock_io_array[PROC_IO_NUM]

A pair of locks used to provide a critical section to execute, in mutual exclusion, the processor's instantiating operations (register/unregister) and the input/output operations (send/receive). These locks are initialized when opening this module, and are kept through the whole life of the module.

Definition at line 154 of file procs.c.

proc_ctx_t* procs_reg_elem_s::proc_ctx

Processor context structure. Each instantiated processor will be registered using this pointer, in a registration array. This pointer may be NULL in the register, meaning that an empty slot is available for registering new processors. To access a registered processor, this pointer will be fetched from the registration array.

See also
procs_module_ctx_t
procs_reg_elem_array

Definition at line 165 of file procs.c.


The documentation for this struct was generated from the following file: