From f20a8750cb04148e4f8d79ba0fd0d905600997c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 29 May 2008 18:24:19 +0000 Subject: [PATCH] * Enlarged the default BLooper port capacity to 200 messages. Since limiting the message count doesn't really make much sense anyway (as opposed to limiting the maximum size of waiting messages), we might still want to enlarge this even more. * This should further help with #2212. * Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25709 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/app/Looper.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/headers/os/app/Looper.h b/headers/os/app/Looper.h index a523480141..dc17141fd9 100644 --- a/headers/os/app/Looper.h +++ b/headers/os/app/Looper.h @@ -1,5 +1,5 @@ /* - * Copyright 2001-2007, Haiku Inc. All Rights Reserved. + * Copyright 2001-2008, Haiku Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: @@ -23,14 +23,15 @@ namespace BPrivate { } // Port (Message Queue) Capacity -#define B_LOOPER_PORT_DEFAULT_CAPACITY 100 +#define B_LOOPER_PORT_DEFAULT_CAPACITY 200 class BLooper : public BHandler { public: BLooper(const char* name = NULL, int32 priority = B_NORMAL_PRIORITY, - int32 port_capacity = B_LOOPER_PORT_DEFAULT_CAPACITY); + int32 port_capacity + = B_LOOPER_PORT_DEFAULT_CAPACITY); virtual ~BLooper(); // Archiving @@ -46,8 +47,9 @@ public: status_t PostMessage(BMessage* message, BHandler* handler, BHandler* replyTo = NULL); - virtual void DispatchMessage(BMessage* message, BHandler* handler); - virtual void MessageReceived(BMessage* msg); + virtual void DispatchMessage(BMessage* message, + BHandler* handler); + virtual void MessageReceived(BMessage* message); BMessage* CurrentMessage() const; BMessage* DetachCurrentMessage(); BMessageQueue* MessageQueue() const;