G
gaurava
Hi,
I am trying to create a new thread within my script and use a global
object reference within the thread. The global object is initialized
before it is passed to the thread. However the thread doesn't receive
an initialized copy. It gets a copy of the reference. I am doing:
use Thread;
Should I use threads and threads::shared? How do I share object
references?
Thanks,
Gaurav
I am trying to create a new thread within my script and use a global
object reference within the thread. The global object is initialized
before it is passed to the thread. However the thread doesn't receive
an initialized copy. It gets a copy of the reference. I am doing:
use Thread;
Should I use threads and threads::shared? How do I share object
references?
Thanks,
Gaurav