Exemple #1
0
/**
 * 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());
  }
}
Exemple #2
0
void int_handler(int dummy){
  cin_data_stop_threads();
  exit(0);
}