[asterisk-dev] Accessing a channel from different threads

Corrado Santoro csanto at diit.unict.it
Sun Oct 7 14:38:23 CDT 2007


Hi all,

I'm writing an Asterisk application and, for some reason, I need to 
access the same "ast_channel" from two different threads: one thread 
basically executes "ast_waitfor_nandfds" and the other thread "ast_write".

So I would like to ask if the access to the channel is thread-safe, or I 
need e.g. a mutex to avoid inconsistencies.

Thank you in advance.

Best regards,
--Corrado



More information about the asterisk-dev mailing list