in reply to Re^7: Execute a sub in the background
in thread Execute a sub in the background
Ok i understand. So is there a way to share a variable or maybe to sent a reference to the sub.
What i want is to have a flag in the main process when its value is one the cycle in the thread to end. How can i do this. I checked the threads::schared but honestly i wasn't able to do anything. So if you could help me whit some example code it would be great
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Execute a sub in the background
by chessgui (Scribe) on Feb 01, 2012 at 16:49 UTC |