Re: Global Variable Safety with Multi-tasking

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu