Debian Codegraph @

LspCpp/src/jsonrpc/GCThreadContext.cpp

raw
1 #include "LibLsp/JsonRpc/GCThreadContext.h"
2 #include <iostream>
3
4 GCThreadContext::GCThreadContext()
5 {
6 #ifdef LSPCPP_USEGC
7 GC_get_stack_base(&gsb);
8 GC_register_my_thread(&gsb);
9 #endif
10 }
11
12 GCThreadContext::~GCThreadContext()
13 {
14 #ifdef LSPCPP_USEGC
15 GC_unregister_my_thread();
16 #endif
17 }