Thread safety of CGEventSourceFlagsState()
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