0

Im trying to create a boost thread which executes the following static function.

Updater::UpdateTrack(const std::string& sFolder)
{
  //Do something
}

I cant seem to figure out how to pass the argument to the function i tried the following:

m_UpdateThread = boost::thread(&Updater::UpdateTrack,"test");
m_UpdateThread = boost::thread(boost::bind(&Updater::UpdateTrack,"test"));

Hope someone can point me in the right direction

Edited by Freefrags: n/a

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Freefrags
0
m_UpdateThread = boost::thread(&Updater::UpdateTrack,"test");

Did work after all im sorry i must of messed something up

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.