On 31/07/2012 21:07, Roedy Green wrote:
> To: Dirk Bruere at NeoPax
> From: "Roedy Green"<roedy.green@1:261/38.remove-dpk-this>
>
> To: Dirk Bruere at NeoPax
> From: Roedy Green<see_w...@mindprod.com.invalid>
>
> On Mon, 30 Jul 2012 10:54:25 +0100, Dirk Bruere at NeoPax
> <
dirk....@gmail.com> wrote, quoted or indirectly quoted someone who
> said :
>
>> How do I access the thread lanSendThread from another class in another file?
>
>
> // execute InParallel.run()
> // in parallel to this thread on a new thread.
> Thread t = new Thread ( new InParallel() );
>
> // Note we call t.start(), not t.run()
> // t.run() would just call run in the ordinary way.
>
> // Get reference to the thread running this
> // code right now.
> Thread runningNow = Thread.currentThread();
I still don't see how this solves my problem. In "main" (controller) I have:
public static Thread txToLanThreadRef;
TxToLanThread txToLanThread = new TxToLanThread(); txToLanThread.start();
txToLanThreadRef = txToLanThread.runningNow;