Multithreading question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
can someone give me an insight on how should I call 
pjmedia_master_port_destroy?
I'm looking at streamutil.c and I can see it is called unceremoniously 
by the main thread. Is this a secure way of doing it or the example 
lacks protective code for concurrent access?
I mean, in pjmedia_master_port_destroy, u_port and d_port are destroyed 
but they would be accessed concurrently by master_port's clock_callback 
before pjmedia_clock_destroy takes effect.

Regards,
Takeshi




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux