- or download this
ref threads->create(...)
- or download this
$inter->{THR} = threads->create(sub{$thread->(\$inter->{INT1})});
- or download this
package HardThread;
...
};
1;
- or download this
$self->{inter} # access to shared data
$self->{THR} # access to thread