|
endThread
|
|
|
|
| ID1, ID2,
|
|
|
| Positive integers specifying the IDs of the threads to be terminated.
|
|
|
|
|
| ERR_OK
|
|
|
| The flag set if successful.
|
|
|
| ERR_FAILED
|
|
|
| The flag set if failed.
|
|
|
|
|
| This set of statements starts a capture cycle in a separate thread and terminates its in 5 seconds:
|
|
|
| a=thread("do\ngrabim(1)\nloop")
|
| wait(5000)
|
| endThread(a)
|
|
|