Listener.WakeUpWaitingThread Method
Definition
Namespace: P1.CameraSdk
Wake up all threads blocked inside the WaitForNotification
method
public void WakeUpWaitingThread();
Forced all thread waiting for notifications on this Listener
to timeout immediately. This means any thread blocked inside the WaitForNotification(uint) method will return from that call.
This is useful to exit threads gracefully when terminating your application.
This method does not invalid or change the state of the Listener
. It is perfectly fine for threads to begin waiting for new events, after this method has been called.
Parameters:
an error-code inside if something goes wrong |
See also: