0

I'm calling sleep() on an NSThread, ( I subclassed NSThread and put a run-loop in it) The thing is that this sleep call is blocking all threads not just my NSThread ...

What's the best way to get around this problem?

user1028028
  • 6,323
  • 9
  • 34
  • 59

1 Answers1

0

Using NSThread you should use the class method sleepForTimeInterval:. Check here the documentation.

e1985
  • 6,239
  • 1
  • 24
  • 39