mirror of
https://github.com/nasa/trick.git
synced 2024-12-23 23:12:26 +00:00
18 lines
451 B
C++
18 lines
451 B
C++
|
|
#include "trick/VariableServer.hh"
|
|
|
|
// This should only be called from the VST itself
|
|
void exit_var_thread(void *in_vst) {
|
|
Trick::VariableServerSessionThread * vst = (Trick::VariableServerSessionThread *) in_vst ;
|
|
|
|
Trick::VariableServer * vs = vst->get_vs() ;
|
|
|
|
vs->delete_session(vst->get_pthread_id());
|
|
|
|
// Tell the variable server that this thread is exiting.
|
|
vs->delete_vst(vst->get_pthread_id()) ;
|
|
|
|
vst->cleanup();
|
|
}
|
|
|