Can i do something like below ? Is it possible or is there any workaround?
..
PostWorkToThread( boost::bind(func_x, arg1) );
PostWorkToThread( boost::bind(func_y, arg1, arg2) );
PostWorkToThread( boost::bind(func_z, arg1, arg2, arg3) );
..
void PostWorkToThread( boost::bind xxx )
{
PostWork( boost::bind(xxx) ); or
PostWork( xxx );
}
Thank you, I appreciate your suggestion.