Added an rwlock to the NodeTree. Not yet usable. Committing, as I just noticed what to do with trantor, and will mess with that instead.

This commit is contained in:
Relintai 2022-02-09 19:04:11 +01:00
parent 7e42d26afa
commit 4fd6ce10ea

View File

@ -2,6 +2,7 @@
#define NODE_TREE_H
#include "core/object.h"
#include "core/threading/rw_lock.h"
class Node;
@ -14,12 +15,16 @@ public:
virtual void send_update(float delta);
void request_write_lock();
NodeTree();
~NodeTree();
protected:
Node *_root_node;
float _update_interval;
bool _write_lock_requested;
RWLock _rw_lock;
};
#endif