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)); //<<<<
}
'&'にI値が必要です。私は例でこれをやっている。それを動作させるには?ブースト。マルチスレッド
そして、他のスレッドが閉じる前に他のスレッドが閉じられるのを待つ方法を教えてください。ミューテックス? – gemexas
@gemexas:新しい質問をする。 – Puppy