]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re/util/include/cap_alloc_impl.h
Inital import
[l4.git] / l4 / pkg / l4re / util / include / cap_alloc_impl.h
1 // -*- Mode: C++ -*-
2 // vim:ft=cpp
3 /**
4  * \file
5  * \brief  Capability allocator implementation
6  */
7 /*
8  * (c) 2008-2009 Technische Universität Dresden
9  * This file is part of TUD:OS and distributed under the terms of the
10  * GNU General Public License 2.
11  * Please see the COPYING-GPL-2 file for details.
12  *
13  * As a special exception, you may use this file as part of a free software
14  * library without restriction.  Specifically, if other files instantiate
15  * templates or use macros or inline functions from this file, or you compile
16  * this file and link it with other files to produce an executable, this
17  * file does not by itself cause the resulting executable to be covered by
18  * the GNU General Public License.  This exception does not however
19  * invalidate any other reasons why the executable file might be covered by
20  * the GNU General Public License.
21  */
22
23 #pragma once
24
25 #if defined(L4RE_NO_COUNTING_CAP_ALLOC)
26
27 #include <l4/re/util/bitmap_cap_alloc>
28
29 namespace L4Re { namespace Util {
30
31 typedef Cap_alloc_base _Cap_alloc;
32
33 }}
34
35 #else
36 #include <l4/re/util/counting_cap_alloc>
37
38 namespace L4Re { namespace Util {
39
40 typedef Counting_cap_alloc<L4Re::Util::Counter<unsigned char> > _Cap_alloc;
41
42 }}
43 #endif
44
45