02-18-06 03:40 AM
On 2006-02-17, Sunil Varma <sunil.s51@gmail.com> wrote:
> i'm trying to debug a program using gdb.
> i use threads in the application.
[...]
> How can i make the calling fucntion wait till the thread finishes its
> execution.
> Here i'm using detachable threads so i dont pthread_join() them in the
> calling function.
Read info gdb. Section Stopping, then Thread Stops. The 'set
scheduler-locking MODE' should be interesting for you.
Generally read also section Running, then Threads.
--
Minds, like parachutes, function best when open
[ Post a follow-up to this message ]
|