Re: [reSIProcate] adding detach to ThreadIf
FYI - I committed this change and added a windows implementation.
Scott
> -----Original Message-----
> From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
> Bruce Lowekamp
> Sent: Monday, August 07, 2006 6:35 PM
> To: resiprocate
> Subject: [reSIProcate] adding detach to ThreadIf
>
> To make rutil/ThreadIf a bit more generic (we're trying to use it for
> some other purposes within our code and need this functionality, which
> seems generally useful), would it be possible to add a detach() call
to
> ThreadIf?
>
> (obviously I don't know what the equivalent call is in Win32)
>
> Thanks,
> Bruce
>
>
> ThreadIf.hxx:
> // signals we will not join and should auto-cleanup
> void detach();
>
> ThreadIf.cxx:
> void
> ThreadIf::detach()
> {
> #if !defined(WIN32)
> pthread_detach(mId);
> #else
> assert(0);
> #endif;
> }
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel@xxxxxxxxxxxxxxxxxxx
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel