0

NSNotification is non-blocking call. Does it mean it runs threads internally somehow ? If not what happens actually: when observer receives the event it executes the handler then the observee continues ? In that case non-blocking is actually fake ?

user310291
  • 36,946
  • 82
  • 271
  • 487

1 Answers1

1

I am not 100% sure but I believe it is directly tied into the event loop handling code. I don't think it spins up a thread.

StilesCrisis
  • 15,972
  • 4
  • 39
  • 62
  • I wouldn't say "fake." I think because it is weaved into the event loop, it can do everything it needs to do while still letting regular events get processed normally. – StilesCrisis Apr 25 '12 at 06:25