• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Custom data formatter for pthread_mutex_t?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Custom data formatter for pthread_mutex_t?
      • From: Peter Mulholland <email@hidden>
  • Prev by Date: Fwd: How to Run more than one executable at the same time
  • Next by Date: Re: How to Run more than one executable at the same time
  • Previous by thread: OpenGL Profiler and X11 Applications
  • Next by thread: Re: Custom data formatter for pthread_mutex_t?
  • Index(es):
    • Date
    • Thread