Re: Global Variable Safety with Multi-tasking

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu