JoystickWrapper icon indicating copy to clipboard operation
JoystickWrapper copied to clipboard

Improve locking - current method is too expensive

Open evilC opened this issue 8 years ago • 0 comments

lock() is apparently quite expensive.
When one of the Subscribe endpoints is hit, kill the monitor thread, make the update, then re-start the monitor thread.
This will allow us to remove the lock() command from the monitor thread entirely.
Apparently, I need to call Interrupt on the thread, then Join on the thread to kill it.

evilC avatar Mar 15 '17 13:03 evilC