objective c - Are Cocoa input events thread safe with NSTimer -


are input events in cocoa (void)mousedown:(nsevent *)theevent , (void)keydown:(nsevent *)theevent thread safe , synced nstimer events firing?

can have nstimer event accessing same memory touch input event would? thread safe?

nstimer events fire on thread scheduled timer. if scheduled timer on main run loop, timer fire on main thread , “safe , synced” input events.

it possible, unusual, create timer in 1 thread , schedule fire on different thread. if you're not sure thread scheduled timer on, show code creates , schedules timer, , tell thread code runs on.


Comments

Popular posts from this blog

javascript - Hide toolbar of pdf file opened inside iframe using firefox -

Ansible - ERROR! the field 'hosts' is required but was not set -

Copy range with conditional formatting -