mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
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:
parent
7e42d26afa
commit
4fd6ce10ea
@ -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
|
Loading…
Reference in New Issue
Block a user