|
Threads and classes
Hello all.
How come when I make a class into a thread, I cannot use the class as an object anymore?
I'm calling it as
public Thread foo = new FooThread();
where FooThread has function bar() which printfs "FOOBAR".
Using threads, how can I call foo.bar() inside my main loop?
|