sigx++
2.0.1
Main Page
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
sigx
choose_lock.h
Go to the documentation of this file.
1
#ifndef _SIGX_CHOOSE_LOCK_TRAIT_H_
2
#define _SIGX_CHOOSE_LOCK_TRAIT_H_
3
4
/*
5
* Copyright 2008 Klaus Triendl
6
*
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Library General Public
9
* License as published by the Free Software Foundation; either
10
* version 2 of the License, or (at your option) any later version.
11
*
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Library General Public License for more details.
16
*
17
* You should have received a copy of the GNU Library General Public
18
* License along with this library; if not, write to the Free
19
* Software Foundation, 51 Franklin Street, Fifth Floor,
20
* Boston, MA 02110-1301, USA.
21
*/
22
29
#include <
sigx/lockable_fwddecl.h
>
30
31
32
namespace
sigx
33
{
34
39
/*enum locking_policy
40
{
41
readlock,
42
writelock
43
};*/
44
55
template
<
typename
T_mutex, locking_policy I_policy>
56
struct
choose_lock
;
57
58
59
#if 0
60
62
template
<locking_policy I_policy>
63
struct
choose_lock
<boost::mutex, I_policy>
64
{
65
typedef
boost::mutex::scoped_lock type;
66
};
67
#endif
68
69
70
}
// namespace sigx
71
72
73
#endif // end file guard
Generated on Mon Sep 2 2013 01:02:21 for sigx++ by
1.8.4