#include <boost\thread.hpp>
#include <iostream>
boost::thread thrd(boost::bind(&thfun,a,
b,c));
thfun是需要单独线程执行的函数,a,b,c是thfun的参数