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

Public Attributes

char prefix_name [256]
 
char * procs_href
 
pthread_mutex_t api_mutex
 
procs_reg_elem_tprocs_reg_elem_array
 
size_t procs_reg_elem_array_size
 
log_ctx_tlog_ctx
 

Detailed Description

Module's instance context structure. PROCS module context structure is statically defined in the program.

Definition at line 172 of file procs.c.

Member Data Documentation

pthread_mutex_t procs_ctx_s::api_mutex

Module's instance API mutual exclusion lock. This lock is used to provide a critical section for external applications to be able to operate concurrently and asynchronously on this module. API options are available through the function procs_opt().

See also
procs_opt

Definition at line 191 of file procs.c.

log_ctx_t* procs_ctx_s::log_ctx

Externally defined LOG module instance context structure.

Definition at line 210 of file procs.c.

char procs_ctx_s::prefix_name[256]

Module's API REST prefix name (256 characters maximum). This parameter can be set by 'procs_open()' function; if not (NULL is specified), the default name "procs" is used.

Definition at line 178 of file procs.c.

char* procs_ctx_s::procs_href

Module's API REST href attribute specifying the URL path the API refers to. This parameter is optional (may be NULL).

Definition at line 183 of file procs.c.

procs_reg_elem_t* procs_ctx_s::procs_reg_elem_array

Array listing the registered processor instances. The idea behind using an array is to have a mean to fast fetch a processor for input (receive) or output (send) operations. This array is defined with a fixed maximum size (set when calling the function 'procs_open()', but limited to a maximum of PROCS_MAX_NUM_PROC_INSTANCES); each element of the array has a set of locks already initialized to enable concurrency.

Definition at line 201 of file procs.c.

size_t procs_ctx_s::procs_reg_elem_array_size

Size of the array of registered processors. See 'procs_ctx_s::procs_reg_elem_array'

Definition at line 206 of file procs.c.


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