Page 1 of 1

Help

Posted: June 5th, 2008, 11:46 pm
by thader2005
what is command endon? and which are these values?

and another question which are the values of waittill?


thanks for all

Re: Help

Posted: June 6th, 2008, 7:24 pm
by Drofder2004
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

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");
}
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.