* 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
This commit is contained in:
Axel Dörfler 2008-05-29 18:24:19 +00:00
parent 55112db6ea
commit f20a8750cb

View File

@ -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;