mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-05-06 17:51:36 +02: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
|
#define NODE_TREE_H
|
||||||
|
|
||||||
#include "core/object.h"
|
#include "core/object.h"
|
||||||
|
#include "core/threading/rw_lock.h"
|
||||||
|
|
||||||
class Node;
|
class Node;
|
||||||
|
|
||||||
@ -14,12 +15,16 @@ public:
|
|||||||
|
|
||||||
virtual void send_update(float delta);
|
virtual void send_update(float delta);
|
||||||
|
|
||||||
|
void request_write_lock();
|
||||||
|
|
||||||
NodeTree();
|
NodeTree();
|
||||||
~NodeTree();
|
~NodeTree();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Node *_root_node;
|
Node *_root_node;
|
||||||
float _update_interval;
|
float _update_interval;
|
||||||
|
bool _write_lock_requested;
|
||||||
|
RWLock _rw_lock;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue
Block a user