[asterisk-dev] [Code Review] Add LWP for core show threads output

tim.ringenbach at gmail.com tim.ringenbach at gmail.com
Thu Sep 2 15:04:41 CDT 2010


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/886/#review2660
-----------------------------------------------------------


If you look at main/logger.c, it has some preprocessor macros to define GETTID(), you probably want to do the same, or move it to a header.

- tim_ringenbach


On 2010-09-02 12:40:36, Jeff Peeler wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/886/
> -----------------------------------------------------------
> 
> (Updated 2010-09-02 12:40:36)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Summary
> -------
> 
> I've run into this problem before and couldn't manage to translate the pthread id to the LWP. I'm not sure if such a mapping exists or not, but let's make debugging easier and just include it. 
> 
> 
> Diffs
> -----
> 
>   /branches/1.4/main/asterisk.c 284559 
> 
> Diff: https://reviewboard.asterisk.org/r/886/diff
> 
> 
> Testing
> -------
> 
> Tested creating a thread and verified that core show threads output matched gdb output. I do not know if this will work on non-Linux platforms, hence the review.
> 
> 
> Thanks,
> 
> Jeff
> 
>




More information about the asterisk-dev mailing list