Fix deadlock on quit for Linux

This commit is contained in:
James Turner 2021-06-22 16:25:41 +01:00
parent bbdc9f2318
commit 820b76d894

View File

@ -57,7 +57,11 @@ namespace nasal
class ThreadedGarbageCollector : public SGExclusiveThread { class ThreadedGarbageCollector : public SGExclusiveThread {
public: public:
ThreadedGarbageCollector() : SGExclusiveThread() {} ThreadedGarbageCollector() : SGExclusiveThread() {}
virtual ~ThreadedGarbageCollector() {}
virtual ~ThreadedGarbageCollector()
{
terminate();
}
int process() override{ int process() override{
return naGarbageCollect(); return naGarbageCollect();