Re: Custom data formatter for pthread_mutex_t?
Re: Custom data formatter for pthread_mutex_t?
- Subject: Re: Custom data formatter for pthread_mutex_t?
- From: Dave Camp <email@hidden>
- Date: Thu, 16 Aug 2007 16:54:57 -0700
On Aug 15, 2007, at 7:05 AM, Cem Karan wrote: Thank you both. Peter, I agree with you that as a function, this would be extremely useful. In a way, I'm kind of surprised that the POSIX spec doesn't have it. Dave, you're right that I can probably download the source and write up my own pthread_mutex_state(). I managed to get past that part of my code already though, and right now don't have time to look into it. If I do get time in the future though, I think I'll see if I can contribute it to the Darwin project; I suspect I'm not the only one that could use such a function.
I wasn't suggesting a function, but instead getting the debugger access to the struct layout and just writing a Xcode debugger formatter string (you just type those in the summary field for things it can't figure out on it's own). That would not disturb the current thread state assuming the debugger just needs to display a field from the struct and not run code in your apps context.
Dave |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden