18 lines
451 B
C++
Raw Normal View History

2015-02-26 09:02:31 -06:00
#include "trick/VariableServer.hh"
2015-02-26 09:02:31 -06:00
// This should only be called from the VST itself
2015-02-26 09:02:31 -06:00
void exit_var_thread(void *in_vst) {
Trick::VariableServerSessionThread * vst = (Trick::VariableServerSessionThread *) in_vst ;
2015-02-26 09:02:31 -06:00
Trick::VariableServer * vs = vst->get_vs() ;
vs->delete_session(vst->get_pthread_id());
2015-02-26 09:02:31 -06:00
// Tell the variable server that this thread is exiting.
vs->delete_vst(vst->get_pthread_id()) ;
vst->cleanup();
2015-02-26 09:02:31 -06:00
}