src/libYARP_dev/galil/qnx6/yarp/YARPGalilDeviceDriver.cpp
int 
YARPGalilDeviceDriver::waitForMotionDone(void *cmd)
{
	int rc = 0;
	bool _motion_flag = false;
	int time = *((int *) cmd);

	check_motion_done(&_motion_flag);
	if (time != 0){ 
		while(!_motion_flag){
			ACE_OS::sleep(ACE_Time_Value(0,time));
			check_motion_done(&_motion_flag);
		}
	}
	else {
		while(!_motion_flag)
			check_motion_done(&_motion_flag);
	}

	return rc;
}
//--------------------------------------------------------------------------------------
//       Class:  YARPGalilDeviceDriver
//      Method:  waitForMotionDone 
// Description:  This method wait for a motion to be completed. A time command can
// 				 be used in order to avoid a continuous polling 
//--------------------------------------------------------------------------------------
YARPGalilDeviceDriver
Method:  waitForMotionDone
Description:  This method wait for a motion to be completed. A time command can
be used in order to avoid a continuous polling
YARPGalilDeviceDriver Method : waitForMotionDone Description : This method wait for a motion to be completed . A time command can be used in order to avoid a continuous polling
int 
YARPGalilDeviceDriver::waitForMotionDone(void *cmd)
{
	int rc = 0;
	bool _motion_flag = false;
	int time = *((int *) cmd);
	check_motion_done(&_motion_flag);
	if (time != 0){ 
		while(!_motion_flag){
			ACE_OS::sleep(ACE_Time_Value(0,time));
			check_motion_done(&_motion_flag);
		}
	}
	else {
		while(!_motion_flag)
			check_motion_done(&_motion_flag);
	}
	return rc;
}
int YARPGalilDeviceDriver :: waitForMotionDone ( void * cmd ) { int rc = 0 ; bool _motion_flag = false ; int time = * ( ( int * ) cmd ) ; check_motion_done ( & _motion_flag ) ; if ( time != 0 ) { while ( ! _motion_flag ) { ACE_OS :: sleep ( ACE_Time_Value ( 0 , time ) ) ; check_motion_done ( & _motion_flag ) ; } } else { while ( ! _motion_flag ) check_motion_done ( & _motion_flag ) ; } return rc ; }
Class:  YARPGalilDeviceDriver
Method:  waitForMotionDone
Description:  This method wait for a motion to be completed.
Class : YARPGalilDeviceDriver Method : waitForMotionDone Description : This method wait for a motion to be completed .