View Single Post
  #1   Spotlight this post!  
Unread 01-04-2010, 01:04
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
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?
Reply With Quote