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: Tue, 14 Aug 2007 15:05:16 -0700
On Aug 14, 2007, at 2:47 PM, Peter Mulholland wrote:
Tuesday, August 14, 2007, 3:05:24 PM, you wrote:
I'm debugging some multi-threaded code that I've written, and
suddenly realized that it would be very handy to be able to see the
state of my locks in the debugger. However, I have no idea how to do
this within XCode. pthread_mutex_trylock() will potentially affect
how my program runs (although, in truth, running everything under a
debugger is going to affect how it runs anyways) but I want to see if
anyone else has any good ideas.
pthread_mutex_t is an opaque handle on any system that has pthreads.
it's contents is always unknown.
What you're suggesting would be useful though... in a function would
be even more useful.. like pthread_mutex_state().
Theoretically, you could grab the source from darwin to get the
opaque data format and make a debugger formatter statement based on
that.
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