Re: Global Variable Safety with Multi-tasking
- Posted by mattlewis (admin) Aug 15, 2012
- 1451 views
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