On 1/26/08, Alberto Takeshi Mayama <mayama at brastel.co.jp> wrote: > 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. > Hi Takeshi, pjmedia_master_port_destroy() should stop and wait for the clock thread to quit before it destroys u_port and d_port, so it should be safe IMO. cheers, -benny > Regards, > Takeshi > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >