191
C-Control Pro Mega Series
© 2008 Conrad Electronic
6.18.2 Thread_Delay
Thread Functions
Syntax
void Thread_Delay(word delay);
Sub Thread_Delay(delay As Word)
Description
With this function a thread will set to "sleep" for a specified time. After this time the thread is again ready for
execution. The waiting period is given in ticks that are created by Timer 2. If Timer 2 is set off or used for
other purposes, the mode of operation of Thread_Delay() is not defined.
Even if Thread_Delay() looks like any other wait function, you have to keep in mind that the
thread is not automatically executed after the waiting period. The thread is then ready for execution,
but it will not started until the next thread change.
Parameter
delay number of 10ms ticks that should be waited
6.18.3 Thread_Info
Thread Functions
Syntax
word Thread_Info(byte info);
Sub Thread_Info(info As Byte) As Word
Description
The function returns information about the calling thread. The info parameter defines what kind of
information is returned.
Parameter
info values:
TI_THREADNUM
number of the calling thread
TI_STACKSIZE
defined stack size
TI_CYCLES
number of cycles before thread change
Содержание C-Control Pro Mega Series
Страница 1: ... 2008 Conrad Electronic C Control Pro Mega Series ...
Страница 9: ...VIII Inhalt 2008 Conrad Electronic ...
Страница 10: ...Part 1 ...
Страница 17: ...Part 2 ...
Страница 23: ...Part 3 ...
Страница 41: ...32 Hardware 2008 Conrad Electronic 3 3 5 3 Component Parts Plan ...
Страница 57: ...48 Hardware 2008 Conrad Electronic 3 4 5 3 Component Parts Plan ...
Страница 58: ...Part 4 ...
Страница 91: ...82 IDE 2008 Conrad Electronic ...
Страница 92: ...Part 5 ...
Страница 135: ...126 Compiler 2008 Conrad Electronic 31 1F US 63 3F 95 5F _ 127 7F DEL ...
Страница 136: ...Part 6 ...
Страница 231: ...Part 7 ...
Страница 240: ......