/** * Destructor. Free resources and closes the FastCCD library */ FastCCD::~FastCCD() { static const char *functionName = "~FastCCD"; try { this->lock(); cin_data_stop_threads(); cin_data_wait_for_threads(); this->unlock(); } catch (const std::string &e) { asynPrint(pasynUserSelf, ASYN_TRACE_ERROR, "%s:%s: %s\n", driverName, functionName, e.c_str()); } }
void int_handler(int dummy){ cin_data_stop_threads(); exit(0); }