Renamed WebNode's write lock acquired notification, and changed it's number.

This commit is contained in:
Relintai 2022-07-07 21:44:41 +02:00
parent 2feba341be
commit 57775d88de
2 changed files with 3 additions and 3 deletions

View File

@ -379,7 +379,7 @@ void WebNode::_notification(const int what) {
case NOTIFICATION_INTERNAL_PROCESS: {
if (_write_lock_requested) {
_rw_lock.write_lock();
notification(NOTIFICATION_WEB_TREE_WRITE_LOCKED);
notification(NOTIFICATION_WEB_NODE_WRITE_LOCKED);
_rw_lock.write_unlock();
_write_lock_requested = false;
@ -486,5 +486,5 @@ void WebNode::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_web_root"), &WebNode::get_web_root);
ClassDB::bind_method(D_METHOD("get_parent_webnode"), &WebNode::get_parent_webnode);
BIND_CONSTANT(NOTIFICATION_WEB_TREE_WRITE_LOCKED);
BIND_CONSTANT(NOTIFICATION_WEB_NODE_WRITE_LOCKED);
}

View File

@ -26,7 +26,7 @@ class WebNode : public Node {
public:
enum {
NOTIFICATION_WEB_TREE_WRITE_LOCKED = 2000,
NOTIFICATION_WEB_NODE_WRITE_LOCKED = 2100,
};
String get_uri_segment();