Beispiel #1
0
void SNACCDLL_API SNACC_CleanupMemory()
{
#ifndef NO_THREADS
   threadDestroy();  // ONLY necessary if a thread lock is created (and it is 
                     //  important to clear all memory leaks before exiting.
#endif
   AsnAny::AsnAnyDestroyHashTbls();   // FINAL call, to clear static tables, 
                                      //  before exiting.
}
Beispiel #2
0
bool Device<MType>::addInput(const std::vector<Input*>& inputs,
                             void* instantiator,
                             const std::string& type,
                             float start_time,
                             float end_time) {
  threadInit();
  return input_updater_->addInputs(inputs,
                                   instantiator,
                                   type,
                                   start_time,
                                   end_time);
  threadDestroy();
}