• 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
Threads - while debugging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Threads - while debugging


  • Subject: Threads - while debugging
  • From: John Draper <email@hidden>
  • Date: Sun, 13 Nov 2005 16:12:06 -0800

Hi,

When I'm single stepping using the X-Code debugger,  and I step
through a method that creates the thread,  then stop at the
next instruction,  will the thread execute or will it stop prior
to execution.   Or in other words, when I'm single stepping
with the source debugger, and step through the C++ call
below...

   if (thread2 == NULL) {
       thread2 = new InfoThread2(this);  <--- this also runs the thread
   }
   next_function();

Once I step through the allocation and creation of the thread,
it also runs it.

The debugger would expectedly stop at the "next_function()",
so when it stops,  has the thread executed by this time in its
entirety?   Or is the thread suspended until I continue executing
the code?

I'm using a C++ wrapper around the POSIX pthread API.
Upon initialization,  I also run the thread right away.

John




_______________________________________________ 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: Threads - while debugging
      • From: James Bucanek <email@hidden>
  • Prev by Date: Re: XCode 2.2 - new warnings
  • Next by Date: Test bundle can't find app
  • Previous by thread: Re: XCode 2.2 - new warnings
  • Next by thread: Re: Threads - while debugging
  • Index(es):
    • Date
    • Thread