• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Thread safety of CGEventSourceFlagsState()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Thread safety of CGEventSourceFlagsState()


  • Subject: Thread safety of CGEventSourceFlagsState()
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 23 Oct 2010 07:09:57 -0700

Even after reading last week's discussion I'm still not sure if it is OK to get the current modifier keys from a secondary thread.  I realize that the keyboard is not a GUI, but it's UI, and I'm worried about that "accessing GUI from secondary thread" thing.

Is it OK to call CGEventSourceFlagsState() from a secondary thread?

Data Point: I tried it and it didn't crash.

Thanks,

Jerry Krinock


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Multiple instances of [NSUserDefaults standardUserDefaults]
  • Next by Date: Re: DO over unnamed sockets
  • Previous by thread: Re: DO over unnamed sockets
  • Next by thread: Why are spaces in the source directory's name killing device builds but not simulator builds?
  • Index(es):
    • Date
    • Thread