Re: Global Variable Safety with Multi-tasking
- Posted by casey Aug 15, 2012
- 1403 views
mattlewis said...
ghaberek said...
It sounds like you need to use a queue. Each task should be adding and removing objects to/from the queue and working on a local variable. This is a much safer way to prevent them from stomping all over each other.
For such a task, you might look at std/stack.e. In particular, use a FIFO stack.
Matt
Thanks for the replies. Both the while loop instead of for loop and the queue technique should both work for me.
thanks again,
Casey