in reply to Monitor list of threads running

See BrowserUk's answer. I'm not sure what's so hard about that answer that you chose to ignore it.

threads->list is documented to only work for attached threads, so it's empty for you. Maybe you don't want to detach your threads at all?

Replies are listed 'Best First'.
Re^2: Monitor list of threads running
by mr_p (Scribe) on Apr 08, 2010 at 19:18 UTC
    I am afraid of some failure and thread dieing...can that happen?

    What happens if I remove ->detach()?

      Seriously, maybe you want to read the threads documentation now? Maybe you want to create some test cases to see what happens when a thread dies? Also, if you're so afraid of failure, maybe you should make your program more robust so that it only erases data when it has positively been processed?

A reply falls below the community's threshold of quality. You may see it by logging in.