summaryrefslogtreecommitdiff
path: root/core/message_queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/message_queue.h')
-rw-r--r--core/message_queue.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/core/message_queue.h b/core/message_queue.h
index 1b1a20ba9a..e04530f24c 100644
--- a/core/message_queue.h
+++ b/core/message_queue.h
@@ -38,7 +38,7 @@ class MessageQueue {
enum {
- DEFAULT_QUEUE_SIZE_KB=1024
+ DEFAULT_QUEUE_SIZE_KB = 1024
};
Mutex *mutex;
@@ -47,8 +47,8 @@ class MessageQueue {
TYPE_CALL,
TYPE_NOTIFICATION,
TYPE_SET,
- FLAG_SHOW_ERROR=1<<14,
- FLAG_MASK=FLAG_SHOW_ERROR-1
+ FLAG_SHOW_ERROR = 1 << 14,
+ FLAG_MASK = FLAG_SHOW_ERROR - 1
};
@@ -68,21 +68,21 @@ class MessageQueue {
uint32_t buffer_max_used;
uint32_t buffer_size;
- void _call_function(Object* p_target,const StringName& p_func,const Variant *p_args,int p_argcount,bool p_show_error);
+ void _call_function(Object *p_target, const StringName &p_func, const Variant *p_args, int p_argcount, bool p_show_error);
static MessageQueue *singleton;
-public:
+public:
static MessageQueue *get_singleton();
- Error push_call(ObjectID p_id,const StringName& p_method,const Variant** p_args,int p_argcount,bool p_show_error=false);
- Error push_call(ObjectID p_id, const StringName& p_method, VARIANT_ARG_LIST);
+ Error push_call(ObjectID p_id, const StringName &p_method, const Variant **p_args, int p_argcount, bool p_show_error = false);
+ Error push_call(ObjectID p_id, const StringName &p_method, VARIANT_ARG_LIST);
Error push_notification(ObjectID p_id, int p_notification);
- Error push_set(ObjectID p_id, const StringName& p_prop, const Variant& p_value);
+ Error push_set(ObjectID p_id, const StringName &p_prop, const Variant &p_value);
- Error push_call(Object *p_object, const StringName& p_method, VARIANT_ARG_LIST);
+ Error push_call(Object *p_object, const StringName &p_method, VARIANT_ARG_LIST);
Error push_notification(Object *p_object, int p_notification);
- Error push_set(Object *p_object, const StringName& p_prop, const Variant& p_value);
+ Error push_set(Object *p_object, const StringName &p_prop, const Variant &p_value);
bool print();
void statistics();