27 Jan
2011
27 Jan
'11
2:41 p.m.
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));
Thank you, I came close to the right syntax at one point then, but now that works. Patricia.
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
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users