bin/pc: Mark non-returning function as void
[haiku.git] / src / servers / app / RegionPool.h
blob3457c4576a43ff870b96cd1fe8c41a234caaae1d
1 /*
2 * Copyright (c) 2006, Haiku, Inc.
3 * Distributed under the terms of the MIT license.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 */
9 #ifndef REGION_POOL_H
10 #define REGION_POOL_H
12 #include <List.h>
14 class BRegion;
16 #define DEBUG_LEAK 0
18 class RegionPool {
19 public:
20 RegionPool();
21 virtual ~RegionPool();
23 BRegion* GetRegion();
24 BRegion* GetRegion(const BRegion& other);
25 void Recycle(BRegion* region);
27 private:
28 BList fAvailable;
29 #if DEBUG_LEAK
30 BList fUsed;
31 #endif
34 #endif // REGION_POOL_H