From da6b5d6d3f8b4528cc6d67c0309df9da25527788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 15 Nov 2010 19:35:43 +0000 Subject: [PATCH] * Cleanup, no functional change. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39438 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/AppServer.cpp | 10 +++--- src/servers/app/ClientMemoryAllocator.cpp | 6 ++-- src/servers/app/ClientMemoryAllocator.h | 37 ++++++++++++----------- 3 files changed, 28 insertions(+), 25 deletions(-) diff --git a/src/servers/app/AppServer.cpp b/src/servers/app/AppServer.cpp index ec2c879506..655fa03f42 100644 --- a/src/servers/app/AppServer.cpp +++ b/src/servers/app/AppServer.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2001-2009, Haiku, Inc. + * Copyright 2001-2010, Haiku, Inc. * Distributed under the terms of the MIT license. * * Authors: @@ -105,11 +105,11 @@ detect_simd() // #pragma mark - -/*! - \brief Constructor +/*! \brief Constructor - This loads the default fonts, allocates all the major global variables, spawns the main housekeeping - threads, loads user preferences for the UI and decorator, and allocates various locks. + This loads the default fonts, allocates all the major global variables, + spawns the main housekeeping threads, loads user preferences for the UI + and decorator, and allocates various locks. */ AppServer::AppServer() : diff --git a/src/servers/app/ClientMemoryAllocator.cpp b/src/servers/app/ClientMemoryAllocator.cpp index 2be9f57ddb..3cd9ad6f49 100644 --- a/src/servers/app/ClientMemoryAllocator.cpp +++ b/src/servers/app/ClientMemoryAllocator.cpp @@ -1,13 +1,13 @@ /* - * Copyright 2006-2007, Haiku, Inc. All Rights Reserved. + * Copyright 2006-2010, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * Axel Dörfler, axeld@pinc-software.de */ -/*! - This class manages a pool of areas for one client. The client is supposed + +/*! This class manages a pool of areas for one client. The client is supposed to clone these areas into its own address space to access the data. This mechanism is only used for bitmaps for far. diff --git a/src/servers/app/ClientMemoryAllocator.h b/src/servers/app/ClientMemoryAllocator.h index f5e9f2c46f..fb0c633133 100644 --- a/src/servers/app/ClientMemoryAllocator.h +++ b/src/servers/app/ClientMemoryAllocator.h @@ -1,5 +1,5 @@ /* - * Copyright 2006, Haiku, Inc. All Rights Reserved. + * Copyright 2006-2010, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: @@ -35,28 +35,31 @@ typedef DoublyLinkedList chunk_list; class ClientMemoryAllocator { - public: - ClientMemoryAllocator(ServerApp* application); - ~ClientMemoryAllocator(); +public: + ClientMemoryAllocator(ServerApp* application); + ~ClientMemoryAllocator(); - status_t InitCheck(); + status_t InitCheck(); - void *Allocate(size_t size, void** _address, bool& newArea); - void Free(void* cookie); + void* Allocate(size_t size, void** _address, + bool& newArea); + void Free(void* cookie); - area_id Area(void* cookie); - uint32 AreaOffset(void* cookie); + area_id Area(void* cookie); + uint32 AreaOffset(void* cookie); - bool Lock(); - void Unlock(); + bool Lock(); + void Unlock(); - private: - struct block *_AllocateChunk(size_t size, bool& newArea); +private: + struct block* _AllocateChunk(size_t size, bool& newArea); - ServerApp* fApplication; - MultiLocker fLock; - chunk_list fChunks; - block_list fFreeBlocks; +private: + ServerApp* fApplication; + MultiLocker fLock; + chunk_list fChunks; + block_list fFreeBlocks; }; + #endif /* CLIENT_MEMORY_ALLOCATOR_H */