2
class accel{
public:
accel(int threads, string params);
private:
void getfile(int from, int to);
void download(int threads);
};
void accel::download(int threads){
boost::thread g(&getfile(0, 1)); //<<<<
}
給出錯誤'&'需要l值。我一直在做這個例子。如何使它工作?提升。多線程
如何讓一個線程在關閉之前等待其他線程關閉?互斥? – gemexas 2011-01-25 12:10:29