]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re/util/include/cap_alloc_impl.h
35a4333755acab0d0027030ae4e9d75efca53083
[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 Alexander Warg <warg@os.inf.tu-dresden.de>
9  *     economic rights: Technische Universität Dresden (Germany)
10  *
11  * This file is part of TUD:OS and distributed under the terms of the
12  * GNU General Public License 2.
13  * Please see the COPYING-GPL-2 file for details.
14  *
15  * As a special exception, you may use this file as part of a free software
16  * library without restriction.  Specifically, if other files instantiate
17  * templates or use macros or inline functions from this file, or you compile
18  * this file and link it with other files to produce an executable, this
19  * file does not by itself cause the resulting executable to be covered by
20  * the GNU General Public License.  This exception does not however
21  * invalidate any other reasons why the executable file might be covered by
22  * the GNU General Public License.
23  */
24
25 #pragma once
26
27 #if defined(L4RE_NO_COUNTING_CAP_ALLOC)
28
29 #include <l4/re/util/bitmap_cap_alloc>
30
31 namespace L4Re { namespace Util {
32
33 typedef Cap_alloc_base _Cap_alloc;
34
35 }}
36
37 #else
38 #include <l4/re/util/counting_cap_alloc>
39
40 namespace L4Re { namespace Util {
41
42 typedef Counting_cap_alloc<L4Re::Util::Counter<unsigned char> > _Cap_alloc;
43
44 }}
45 #endif
46
47