"Patricia Hazel Shaw [phs]"
class Board{ public: void pressButton(int button); void boxAction(int box); private: boost::thread_group threads; };
void Board::pressButton(int button){ if(button=1){ threads.create_thread(&boxAction,1);
create_thread() takes a single callable object as the parameter, so if you want to call a member function you must wrap it with bind: threads.create_thread(boost::bind(&Board::boxAction,this,1)); Anthony -- Author of C++ Concurrency in Action http://www.stdthread.co.uk/book/ just::thread C++0x thread library http://www.stdthread.co.uk Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976