Custom data formatter for pthread_mutex_t?
Custom data formatter for pthread_mutex_t?
- Subject: Custom data formatter for pthread_mutex_t?
- From: Cem Karan <email@hidden>
- Date: Tue, 14 Aug 2007 10:05:24 -0400
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.
Come to think of it, is there a favored tool/methodology to use under
OS X for debugging multi-threaded/multi-process applications? I've
got a core duo mini at home, and should be getting a dual quad-core
for work, so I'd like to write my programs to be as parallel as
possible. I practice safe multithreading as far as I'm able to
(E.g., recommendations in Programming with POSIX Threads by David
Butenhof, and anything else I run across the net), but it would
really be nice to be able to set up a debugger with a list of global
asserts along the lines of 'Whenever X is accessed, Y must be locked'.
Thanks,
Cem Karan
_______________________________________________
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