get_current_hthread_id — Return the HALCON thread ID of the current thread.
get_current_hthread_id( : : : HThreadID)
get_current_hthread_id returns a thread ID that represents the
currently running thread in
This ID is identical to the windows thread ID or the POSIX thread ID on UNIX
platforms and is also returned by the par_start operation of the hdevengine.
It can later be used to interrupt operators that are executed
in this thread using
ID representing the current thread.
global tuple HThreadID get_current_hthread_id (HThreadID) * call some slow operator... * In a different thread wait_seconds(2) * Interrupt the long-running operator in the other thread interrupt_operator (HThreadID, 'break')
If the current thread can be determined,
returns 2 (H_MSG_TRUE). Otherwise an exception is raised.