[asterisk-dev] tilghman: branch 1.4 r152958 - /branches/1.4/channels/chan_h323.c

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Fri Oct 31 11:42:04 CDT 2008

On Friday 31 October 2008 03:44:56 Russell Bryant wrote:
> On Oct 30, 2008, at 9:20 PM, Eliel Sardañons wrote:
> > I don't think so, they are using joinable threads for the monitors in
> > almost all the channels.
> That is correct.  However, they do use an API call that might get
> confused with detached threads at a quick glance.
> ast_pthread_create_background()
> This API call does not create a detached thread.  It creates a
> joinable thread, but uses a smaller stack size than Asterisk threads
> created without the _background() API call.

I refer not only to the monitor thread, but to other threads, as well.  For
example, chan_skinny.c:

ast_pthread_create_detached(&s->t, NULL, skinny_session, s)

        pthread_kill(s->t, SIGURG);
        pthread_join(s->t, NULL);


More information about the asterisk-dev mailing list