Implement F12 game reset (MRI only)

Can be disabled with "enableReset=false".

While at it, also replace the flakey volatile bool flags
with proper atomics.
This commit is contained in:
Jonas Kulla 2014-08-24 07:36:19 +02:00
parent 3a2e560139
commit d223d83cbf
23 changed files with 343 additions and 60 deletions

View file

@ -105,6 +105,15 @@ public:
size--;
}
void clear()
{
remove(root);
root.prev = &root;
root.next = &root;
size = 0;
}
T *tail() const
{
IntruListLink<T> *node = root.prev;