Wed Jan 8 2020 09:50:24

Asterisk developer's documentation


multiplexed_thread Struct Reference

Structure which represents a single thread handling multiple 2 channel bridges. More...

Data Fields

struct ast_channelchans [MULTIPLEXED_MAX_CHANNELS]
 
unsigned int count
 
int pipe [2]
 
unsigned int service_count
 
pthread_t thread
 
unsigned int waiting:1
 

Detailed Description

Structure which represents a single thread handling multiple 2 channel bridges.

Definition at line 57 of file bridge_multiplexed.c.

Field Documentation

Channels in this thread

Definition at line 63 of file bridge_multiplexed.c.

Referenced by multiplexed_add_or_remove(), and multiplexed_thread_function().

unsigned int count

Number of channels in this thread

Definition at line 65 of file bridge_multiplexed.c.

Referenced by find_multiplexed_thread(), multiplexed_bridge_create(), and multiplexed_bridge_destroy().

int pipe[2]

Pipe used to wake up the multiplexed thread

Definition at line 61 of file bridge_multiplexed.c.

Referenced by destroy_multiplexed_thread(), multiplexed_bridge_create(), multiplexed_nudge(), and multiplexed_thread_function().

unsigned int service_count

Number of channels actually being serviced by this thread

Definition at line 69 of file bridge_multiplexed.c.

Referenced by multiplexed_add_or_remove(), and multiplexed_thread_function().

pthread_t thread
unsigned int waiting

Bit used to indicate that the thread is waiting on channels

Definition at line 67 of file bridge_multiplexed.c.

Referenced by multiplexed_nudge(), and multiplexed_thread_function().


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