mirror of
https://github.com/usatiuk/psil.git
synced 2025-10-29 03:07:49 +01:00
gc seems to work!
This commit is contained in:
@@ -23,7 +23,7 @@ struct Cell {
|
||||
virtual ~Cell() = 0;
|
||||
|
||||
CellType _type;
|
||||
bool live = false;
|
||||
std::atomic<bool> live = false;
|
||||
};
|
||||
|
||||
struct NumAtomCell : public Cell {
|
||||
@@ -45,8 +45,8 @@ struct ConsCell : public Cell {
|
||||
explicit ConsCell(Cell *car) : Cell(CellType::CONS), _car(car) {}
|
||||
ConsCell(Cell *car, Cell *cdr) : Cell(CellType::CONS), _car(car), _cdr(cdr) {}
|
||||
|
||||
Cell *_car = nullptr;
|
||||
Cell *_cdr = nullptr;
|
||||
std::atomic<Cell *> _car = nullptr;
|
||||
std::atomic<Cell *> _cdr = nullptr;
|
||||
};
|
||||
|
||||
#endif//PSIL_CELL_H
|
||||
|
||||
Reference in New Issue
Block a user