Boost logo

Threads-Devel :

Subject: [Threads-devel] "Inside" a thread
From: Andreas Maier (andreas_maier_at_[hidden])
Date: 2010-08-02 09:30:26


Hi,
how can I call a method or access a variable of the object "inside" a thread?
I mean, if I write:

myclass mc;
thread th(mc);

How can I access myclass now? I tried by doing something with mc, but I think mc will be copied.


Threads-Devel list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk