예제 #1
0
void writer(rw_data& d)
{
	using namespace boost;
	for(int i = 0; i < 20; i++)
	{
		this_thread::sleep(posix_time::millisec(10));
		d.write();
	}
}
예제 #2
0
void writer(rw_data &d){
	for(int i=0;i < 20; ++i){
		this_thread::sleep(posix_time::milliseconds(10));
		d.write();
	}
}