Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 22nd, 2012  |  syntax: None  |  size: 0.20 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. how do I check if a thread is still running?
  2. isExecuting
  3. isCancelled
  4. isFinished
  5.        
  6. BOOL stillRunning = [[NSThread currentThread] isExecuting];
  7.        
  8. BOOL isStillRunning = [yourThreadObject isExecuting];