#
1a7bcf69 |
|
01-Jun-2014 |
Oliver Tappe <zooey@hirschkaefer.de> |
Lots of B_PRI... insertions to fix errors with DEBUG=1.
|
#
e09045d4 |
|
14-Oct-2011 |
Michael Lotz <mmlr@mlotz.ch> |
* Fix debug build of the registrar. * Make the macros use varargs so we avoid multiple invokations of the print function (to properly use with debug_printf for example). * Minor cleanup to the macros. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42848 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
756b64fd |
|
16-Dec-2010 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Removed the obsolescent [B]Reference[able] API and replaced the remaining uses. Fixes the gcc 2 acpi build. * Renamed WeakReferenceable::{Add,Remove}Reference() to {Acquire,Release}Reference() for consistency. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39871 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a0439d88 |
|
09-Nov-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Adjusted thread priorities of several system services based on a mail from Mikhail Panasyuk: since worker threads often end up with B_NORMAL_PRIORITY, it might be a good idea to give system threads a higher priority. * Minor cleanup (mostly automatic whitespace). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33961 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d7a16b23 |
|
31-Jul-2009 |
Michael Lotz <mmlr@mlotz.ch> |
* Fully switch to the Haiku message format so that it is also used for on-disk storage. * Remove reduntant information from the header (field_count vs. fields_size). * Remove checksums previously used to validate the message passing by area mechanism. * Move variables that are purely used by the instance out of the header and into the BMessage object. * Use more sensible types for the different message fields. * Reduce some field sizes to realistic values. * Make size_t values into uint32 values so the message format will not change when later moving to 64 bits. * Pack the structures used for flat message storage so it doesn't change because of padding. * Fix message passing by area. It never worked because the created area was never actually filled with any data! * Some more allocation checks with graceful fallbacks (should be all now). * Some more checks for negative index values (should also be all now). * Make printing more inline with how the rest of the class works and make some of the output more consistent. * Also add the new unsigned types to PrintToStream() output. * Fix printing of unknown types and invalid BMessages, it would always have printed only the first entry respectively the same error. * Added some clarifying comments. * Cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32039 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fb3e35fc |
|
22-Jan-2009 |
Michael Lotz <mmlr@mlotz.ch> |
Fixing all headers/namespaces/name lookup problems that hinder a GCC 4.3.2 build. I sure hope that this doesn't break the build for anyone else. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28992 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
bdbd1cb4 |
|
11-Mar-2006 |
Michael Lotz <mmlr@mlotz.ch> |
Removing the USING_MESSAGE4 define. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16710 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4ceb1e51 |
|
20-Nov-2005 |
Axel Dörfler <axeld@pinc-software.de> |
* reverted Adi's premature changes to BWindow and restored _DetermineTarget() and task_looper() again. * removed BMessenger::fPreferred - whenever you had to specify "usePreferred" separately, you don't have to do that anymore - use B_PREFERRED_TOKEN instead. * fixed BTokenSpace::GetToken() semantics: it will no longer touch the "object" argument in case of failure. * Introduced a BWindow::_DistributeMessage() that will be part of the event dispatcher counterpart to the app_server (the other will be _DetermineTarget()). * Made it easier to use Michael's Message4 implementation: just add the following line to your UserBuildConfig: AppendToConfigVar DEFINES : HAIKU_TOP src : USING_MESSAGE4 : global ; * Introduced ServerWindow::HandlerMessenger() and FocusMessenger() - the first will target the client handler, while the other will target the preferred handler of the client looper (usually the view having focus). * Fixed dano message unflattening in the Message4 code. * Changed BMessage::PrintToStream() to no longer use macros in the Message4 implementation. * I hope that's all - it's a huge change, but it's all connected. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15046 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
cf10934e |
|
13-Nov-2005 |
Michael Lotz <mmlr@mlotz.ch> |
Introducing Message4. The changes to the related sources are ifdefed with USING_MESSAGE4 which is defined in Message4.h. To use Message4 the Message4.cpp, Message4.h, MessageUtils4.cpp, MessageUtils4.h and MessagePrivate4.h have to be linked to their counterparts without 4 suffix. Then MessageBody.cpp and MessageField.cpp have to be commented out in the app kit Jamfile and r5_message.cpp has to be added. There remain some bugs to be found. Feel free to change that. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14882 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
758b1d0e |
|
12-Nov-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Fixes that make Haiku build with gcc 4. Mainly out of the following categories: * Missing includes (like <stdlib.h> and <string.h>). * Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so. * Local variables shadowing parameters. * Default parameters in function definitions (as opposed to function declarations). * All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported explicitly from the std:: namespace now. * "new (sometype)[...]" must read "new sometype[...]", even if sometype is something like "const char *". * __FUNCTION__ is no longer a string literal (but a string expression), i.e. 'printf(__FUNCTION__ ": ...\n")' is invalid code. * A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes" is an invalid expression. * "friend class SomeClass" only works when SomeClass is known before. Otherwise the an inner class with that name is considered as friend. gcc 4 is much pickier about scopes. * gcc 4 is generally stricter with respect to type conversions in C. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2a0de579 |
|
06-Jul-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Missing loop exit in case of message sending failure. This could cause a busy loop of the MessageDeliverer when the port was deleted while there were still messages to send. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13489 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
553ea301 |
|
03-Jul-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Moved TRoster out of the BPrivate namespace. It does no longer appear in any public header. * Replaced a good deal of the MessageDeliverer's DeliverMessage() versions by more general ones using the new interface MessagingTargetSet to represent a set of targets. This simplifies the usage in cases where the caller doesn't already have the targets in a supported representation. * Implemented a first approximation of the shutdown process. There is no GUI yet. Only superficially tested under R5. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13417 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
bed68f20 |
|
01-Feb-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
DoublyLinkedList lives in the <util/DoublyLinkedList.h>. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11186 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
eb5bc5f9 |
|
30-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added a bit of documentation. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11166 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c6dbc50e |
|
29-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Added per-port sanity limits. We limit the number and summed size of messages. * We now maintain a second message list per port, which is sorted by timeout time. Thus we can drop timed out messages as early as possible. * Fixed a bug which caused messages to disappear in the port list. * Now delete a port not only when an error occurred when delivering a message, but also when it is empty. * More debug output. Seems to be working well now. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11142 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f64fc02f |
|
29-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added another DeliverMessage version for broadcasting. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11132 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d306a465 |
|
26-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Added a timeout to the delivery functions. This is the time after which the message will be finally dropped. Makes sense for periodic message runners for instance. * Set the target of a BMessage before flattening it. Thus there will be space in the flattened header for it. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11071 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
56833e83 |
|
25-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Implemented the actual message sending. The implementation is complete now, but still untested. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11062 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
757bc7b9 |
|
25-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Renamed Referencable to Referenceable (mainly to make Axel happier :-). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11035 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2c17b743 |
|
25-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Implemented all missing functionality save the actual sending of a flattened message. Support for this needs to be added to BMessage first. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11034 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2467cef0 |
|
25-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
This class encapsulates the service delivering messages without dropping them immediately when the target port is full at the moment. It's not quite complete. The data structures are there, but the actual delivery is still missing. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11029 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
1a7bcf6962e1c99906cce0fe602e08c3fcda46f6 |
|
01-Jun-2014 |
Oliver Tappe <zooey@hirschkaefer.de> |
Lots of B_PRI... insertions to fix errors with DEBUG=1.
|
#
e09045d41f067ea34a2fcefedb36c2b83ac4cb5d |
|
14-Oct-2011 |
Michael Lotz <mmlr@mlotz.ch> |
* Fix debug build of the registrar. * Make the macros use varargs so we avoid multiple invokations of the print function (to properly use with debug_printf for example). * Minor cleanup to the macros. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42848 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
756b64fd836dad5b63f41f0b01f8cedfec795f9d |
|
16-Dec-2010 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Removed the obsolescent [B]Reference[able] API and replaced the remaining uses. Fixes the gcc 2 acpi build. * Renamed WeakReferenceable::{Add,Remove}Reference() to {Acquire,Release}Reference() for consistency. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39871 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a0439d88df9202e0a5aea9fbe587a1eaf88dd348 |
|
09-Nov-2009 |
Axel Dörfler <axeld@pinc-software.de> |
* Adjusted thread priorities of several system services based on a mail from Mikhail Panasyuk: since worker threads often end up with B_NORMAL_PRIORITY, it might be a good idea to give system threads a higher priority. * Minor cleanup (mostly automatic whitespace). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33961 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d7a16b238f2207547080ea7eb0f4c430b6f25049 |
|
31-Jul-2009 |
Michael Lotz <mmlr@mlotz.ch> |
* Fully switch to the Haiku message format so that it is also used for on-disk storage. * Remove reduntant information from the header (field_count vs. fields_size). * Remove checksums previously used to validate the message passing by area mechanism. * Move variables that are purely used by the instance out of the header and into the BMessage object. * Use more sensible types for the different message fields. * Reduce some field sizes to realistic values. * Make size_t values into uint32 values so the message format will not change when later moving to 64 bits. * Pack the structures used for flat message storage so it doesn't change because of padding. * Fix message passing by area. It never worked because the created area was never actually filled with any data! * Some more allocation checks with graceful fallbacks (should be all now). * Some more checks for negative index values (should also be all now). * Make printing more inline with how the rest of the class works and make some of the output more consistent. * Also add the new unsigned types to PrintToStream() output. * Fix printing of unknown types and invalid BMessages, it would always have printed only the first entry respectively the same error. * Added some clarifying comments. * Cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32039 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fb3e35fcec1ef41b413b3b121764509f436dee4d |
|
22-Jan-2009 |
Michael Lotz <mmlr@mlotz.ch> |
Fixing all headers/namespaces/name lookup problems that hinder a GCC 4.3.2 build. I sure hope that this doesn't break the build for anyone else. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28992 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
bdbd1cb4412cb21b5c6ddbec72bd7f151d3f09cf |
|
11-Mar-2006 |
Michael Lotz <mmlr@mlotz.ch> |
Removing the USING_MESSAGE4 define. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16710 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
4ceb1e519c0447147b1d8b54a324bb7fedd3a606 |
|
20-Nov-2005 |
Axel Dörfler <axeld@pinc-software.de> |
* reverted Adi's premature changes to BWindow and restored _DetermineTarget() and task_looper() again. * removed BMessenger::fPreferred - whenever you had to specify "usePreferred" separately, you don't have to do that anymore - use B_PREFERRED_TOKEN instead. * fixed BTokenSpace::GetToken() semantics: it will no longer touch the "object" argument in case of failure. * Introduced a BWindow::_DistributeMessage() that will be part of the event dispatcher counterpart to the app_server (the other will be _DetermineTarget()). * Made it easier to use Michael's Message4 implementation: just add the following line to your UserBuildConfig: AppendToConfigVar DEFINES : HAIKU_TOP src : USING_MESSAGE4 : global ; * Introduced ServerWindow::HandlerMessenger() and FocusMessenger() - the first will target the client handler, while the other will target the preferred handler of the client looper (usually the view having focus). * Fixed dano message unflattening in the Message4 code. * Changed BMessage::PrintToStream() to no longer use macros in the Message4 implementation. * I hope that's all - it's a huge change, but it's all connected. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15046 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
cf10934e5fde37c267f7fb3bec89a8e9f5d9c476 |
|
13-Nov-2005 |
Michael Lotz <mmlr@mlotz.ch> |
Introducing Message4. The changes to the related sources are ifdefed with USING_MESSAGE4 which is defined in Message4.h. To use Message4 the Message4.cpp, Message4.h, MessageUtils4.cpp, MessageUtils4.h and MessagePrivate4.h have to be linked to their counterparts without 4 suffix. Then MessageBody.cpp and MessageField.cpp have to be commented out in the app kit Jamfile and r5_message.cpp has to be added. There remain some bugs to be found. Feel free to change that. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14882 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
758b1d0e05fe1042cce6e00d194a147802d4f9be |
|
12-Nov-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Fixes that make Haiku build with gcc 4. Mainly out of the following categories: * Missing includes (like <stdlib.h> and <string.h>). * Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so. * Local variables shadowing parameters. * Default parameters in function definitions (as opposed to function declarations). * All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported explicitly from the std:: namespace now. * "new (sometype)[...]" must read "new sometype[...]", even if sometype is something like "const char *". * __FUNCTION__ is no longer a string literal (but a string expression), i.e. 'printf(__FUNCTION__ ": ...\n")' is invalid code. * A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes" is an invalid expression. * "friend class SomeClass" only works when SomeClass is known before. Otherwise the an inner class with that name is considered as friend. gcc 4 is much pickier about scopes. * gcc 4 is generally stricter with respect to type conversions in C. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2a0de579c725c2ceb63805ebb5143198040c207a |
|
06-Jul-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Missing loop exit in case of message sending failure. This could cause a busy loop of the MessageDeliverer when the port was deleted while there were still messages to send. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13489 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
553ea30124732e31346177c3bab544e074231b8e |
|
03-Jul-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Moved TRoster out of the BPrivate namespace. It does no longer appear in any public header. * Replaced a good deal of the MessageDeliverer's DeliverMessage() versions by more general ones using the new interface MessagingTargetSet to represent a set of targets. This simplifies the usage in cases where the caller doesn't already have the targets in a supported representation. * Implemented a first approximation of the shutdown process. There is no GUI yet. Only superficially tested under R5. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13417 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
bed68f20881ecae23ed586a5445251d78965e95b |
|
01-Feb-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
DoublyLinkedList lives in the <util/DoublyLinkedList.h>. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11186 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
eb5bc5f9243f6ae838ad2a535c916198f99227a4 |
|
30-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added a bit of documentation. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11166 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
c6dbc50e2b9898f8e8a97235bb43bb3a556d63b3 |
|
29-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Added per-port sanity limits. We limit the number and summed size of messages. * We now maintain a second message list per port, which is sorted by timeout time. Thus we can drop timed out messages as early as possible. * Fixed a bug which caused messages to disappear in the port list. * Now delete a port not only when an error occurred when delivering a message, but also when it is empty. * More debug output. Seems to be working well now. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11142 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f64fc02f8927ceec96cda927a60f9871b7734e33 |
|
29-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added another DeliverMessage version for broadcasting. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11132 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d306a4652c35992018f2425d59ccce5b140c969c |
|
26-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Added a timeout to the delivery functions. This is the time after which the message will be finally dropped. Makes sense for periodic message runners for instance. * Set the target of a BMessage before flattening it. Thus there will be space in the flattened header for it. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11071 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
56833e831f43895db13fb6ba96334ec5cb4110d3 |
|
25-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Implemented the actual message sending. The implementation is complete now, but still untested. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11062 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
757bc7b9345d8578f5f1cca055762b62019a4c97 |
|
25-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Renamed Referencable to Referenceable (mainly to make Axel happier :-). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11035 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2c17b743c7ed82963dbc33f39db933081be22143 |
|
25-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Implemented all missing functionality save the actual sending of a flattened message. Support for this needs to be added to BMessage first. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11034 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2467cef0f0e4848219db6f3e2512f75d5e2bbec6 |
|
25-Jan-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
This class encapsulates the service delivering messages without dropping them immediately when the target port is full at the moment. It's not quite complete. The data structures are there, but the actual delivery is still missing. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11029 a95241bf-73f2-0310-859d-f6bbb57e9c96
|