Added: 2 years ago
From: ipodtouchguru3
Views: 3,039
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (12)

Sign In or Sign Up now to post a comment!
  • @BlurKingApple, you're right using GCD instead of NSLock should give less problems

  • If you didn't already know you can also use NSLock to access global variables properly to prevent problems.

  • @macheads101 NSLock is more trouble then its worth.

  • @macheads101 @ipodtouchguru3 I use GCD instead of NSLock. Works great.

  • Nice tutorial dude. I like that not only give the tutorial but explain the disadvantages/ advantages of them

  • I didn't get it but cool.

  • What don't you get?

  • What is the point of it? I see that NSThread is bad if you do it the wrong way because your blocking the main thread. But remember when I showed you the url shortener? You said its blocking the main thread. What does that mean?

  • NSThread is not bad, only if you call methods on UIKit objects or try to draw on the screen. You need to use a different thread if your doing something that would block the main thread.

  • Oh I see. Alright. But I still don't know how I will be able to not block it.

  • You just don't understand

  • @AppStoreMod you stop the code from running in one thread and run it in another.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more