Instructions

358Libraries
© 2013 Conrad Electronic
5.25.4 Thread_Kill
Thread Functions
Syntax
void Thread_Kill(byte thread);
Sub Thread_Kill(thread As Byte)
Description
Terminates a thread. If 0 is given as thread number, the whole program will be terminated.
Parameter
thread (0-13) thread number
5.25.5 Thread_Lock
Thread Functions
Syntax
void Thread_Lock(byte lock);
Sub Thread_Lock(lock As Byte)
Description
With this function you can inhibit thread changes. This is reasonable if you have a series of port operations
or other hardware actions that should not timely be separated in a thread change.
If you forget to remove the thread lock, the multithreading is not working.
Parameter
lock if set to 1 thread changes are inhibited, 0 means thread changes are allowed
5.25.6 Thread_MemFree
Thread Functions
Syntax
word Thread_MemFree(void);
Sub Thread_MemFree() As Word