Updated phidget example to account for threads in underlying library