what is command endon? and which are these values?
and another question which are the values of waittill?
thanks for all
Help
Moderator: Core Staff
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: Help
The values are dynamic.
endon = Will force a function to end when the variable is called.
waittill = Will force the thread to wait until the variable is called.
The two above are used in conjunction with the "notify" function.
And the notify function requires an entity to be applied to...
E.g
1. Function 'doNotify()' is threaded
2a. 'doNotify()' starts counting to 30
2b. Main function is told to wait until variable is called
3a. 'doNotify()' function reaches 30 and notifies level of the variable
3b. Main function gets message that variable has been called and stops waiting.
4. iPrintLn is called.
endon = Will force a function to end when the variable is called.
waittill = Will force the thread to wait until the variable is called.
The two above are used in conjunction with the "notify" function.
And the notify function requires an entity to be applied to...
E.g
Code: Select all
main()
{
thread doNotify();
level waittill("put_whatever_you_want_here");
iprintln("Hello");
}
doNotify()
{
wait 30;
level notify("put_whatever_you_want_here");
}
2a. 'doNotify()' starts counting to 30
2b. Main function is told to wait until variable is called
3a. 'doNotify()' function reaches 30 and notifies level of the variable
3b. Main function gets message that variable has been called and stops waiting.
4. iPrintLn is called.

Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Who is online
Users browsing this forum: No registered users and 5 guests