Phidget_close handling of callbacks

C, C++, and Visual C++
chefdeletat
Fresh meat
Posts: 1
Joined: Sat May 09, 2026 1:32 am

Phidget_close handling of callbacks

Post by chefdeletat »

In the Phidget22 c library, does Phidget_close block until in-flight invocations of the channel's onAttach / onDetach / onError handlers return?
User avatar
burley
Human-Cyborg Relations
Posts: 30
Joined: Tue Sep 27, 2011 2:37 pm
Location: Calgary

Re: Phidget_close handling of callbacks

Post by burley »

Yes. Close will attempt to delete any incoming events once it has begun executing. It closes the device immediately and then waits until any communication ends before completing and anything it gets in the meantime it will ignore/throw away.
Brian Burley
403-282-7335 ext. 6003
support@phidgets.com