View · Search · Index
No registered users in community xowiki
in last 10 minutes

Re: [Xotcl] XOTcl and Thread

From: Vasiljevic Zoran <zv_at_archiware.com>
Date: Thu, 10 Feb 2011 14:52:28 +0100

On 10.02.2011, at 14:27, Krzysztof Frukacz wrote:

>
> What would be the proper way to "register" the object myObject (which already exists) in another thread?

No way. You need to ask Gustaf to give you serialisation-code
that you can use to replicate your object/classes blueprints
from one thread into others as a matter of thread inits.
IIRC there must be a sample Serialize class somewhere in the
distribution.
Even then, an instantiated object cannot be shared/moved across
threds. You need to instantiate it in the target thread.

Cheers
Zoran