Threads - while debugging
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