in reply to Re: Perl/Tk Multithreading
in thread Perl/Tk Multithreading
so now the following $FunctionsToLaunchThread{$FunctionName}->(@ArgumentsThread); becomes $FunctionsToLaunchThread{run_script}->($new) which is \&run_script->($new); The above function is expected to call the function in the thread. The run_script subroutine I already shared in previous post. As you said its true I am facing a blocking problem on the device I/O. The thread is created and is loading the do "add.pl" but now in the add.pl I am using network modules, this modules are blocked for the thread to work completely. I am getting following errors: 1. "unable call method purge_all() in the Modem.pm on undentified variable" 2. "undefined value for a shared variable at line.... in Modem.pm" So is there any way to work around this. I wanted to share the working code but it is too big.$FunctionName = "run_script"; @ArgumentsThread = ($new);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl/Tk Multithreading
by zentara (Cardinal) on Jul 18, 2011 at 11:55 UTC |