2015-02-26 15:02:31 +00:00
|
|
|
|
2015-06-01 15:28:29 +00:00
|
|
|
#include "trick/VariableServer.hh"
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2023-03-20 22:53:01 +00:00
|
|
|
// This should only be called from the VST itself
|
2015-02-26 15:02:31 +00:00
|
|
|
void exit_var_thread(void *in_vst) {
|
2023-03-20 22:53:01 +00:00
|
|
|
Trick::VariableServerSessionThread * vst = (Trick::VariableServerSessionThread *) in_vst ;
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2023-03-20 22:53:01 +00:00
|
|
|
Trick::VariableServer * vs = vst->get_vs() ;
|
2023-02-22 17:35:30 +00:00
|
|
|
|
2022-08-23 18:47:56 +00:00
|
|
|
vs->delete_session(vst->get_pthread_id());
|
2023-02-22 17:35:30 +00:00
|
|
|
|
2015-02-26 15:02:31 +00:00
|
|
|
// Tell the variable server that this thread is exiting.
|
|
|
|
vs->delete_vst(vst->get_pthread_id()) ;
|
|
|
|
|
2023-02-22 17:35:30 +00:00
|
|
|
vst->cleanup();
|
2015-02-26 15:02:31 +00:00
|
|
|
}
|
|
|
|
|