Add GC shutdown command
Former-commit-id: 28e8f68016b554f3d410502c2af1641368c2bb92
This commit is contained in:
parent
b7a60588c1
commit
faba0a99c3
6
src/gc.h
6
src/gc.h
@ -30,6 +30,12 @@ public:
|
|||||||
return m_epochNext;
|
return m_epochNext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void shutdown()
|
||||||
|
{
|
||||||
|
std::unique_lock<fastlock> lock(m_lock);
|
||||||
|
m_vecepochs.clear();
|
||||||
|
}
|
||||||
|
|
||||||
void endEpoch(uint64_t epoch, bool fNoFree = false)
|
void endEpoch(uint64_t epoch, bool fNoFree = false)
|
||||||
{
|
{
|
||||||
std::unique_lock<fastlock> lock(m_lock);
|
std::unique_lock<fastlock> lock(m_lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user