cheshirekow
v0.1.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
barrier_attr.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2012 Josh Bialkowski (jbialk@mit.edu)
3
*
4
* This file is part of cpp-pthreads.
5
*
6
* cpp-pthreads is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* cpp-pthreads is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with cpp-pthreads. If not, see <http://www.gnu.org/licenses/>.
18
*/
27
#ifndef CPP_PTHREADS_BARRIERATTR_H_
28
#define CPP_PTHREADS_BARRIERATTR_H_
29
30
#include <pthread.h>
31
32
#include <cstdarg>
33
#include <ctime>
34
35
#include <
cpp_pthreads/enums.h
>
36
#include <
cpp_pthreads/attr.h
>
37
#include <
cpp_pthreads/barrier.h
>
38
39
namespace
pthreads {
40
42
extern
const
Access<Barrier, PShared>
B_PSHARED
;
43
46
template
<>
47
struct
AttrType
<
Barrier
> {
48
typedef
pthread_barrierattr_t
type
;
49
};
50
51
}
// namespace pthreads
52
53
#endif // BARRIERATTR_H_
pthreads::AttrType
template used to resolve the pthreads_xxx_t object corresponding to the Attr<Base> object ...
Definition:
attr.h:42
pthreads::AttrType< Barrier >::type
pthread_barrierattr_t type
Definition:
barrier_attr.h:48
attr.h
pthreads::Barrier
A barrier is an object which synchronizes a fixed number of threads at a specific point...
Definition:
barrier.h:42
enums.h
pthreads::B_PSHARED
const Access< Barrier, PShared > B_PSHARED
provides access to the pshared field of a pthread_barrierattr_t
barrier.h
include
cpp_pthreads
barrier_attr.h
Generated on Sun Mar 22 2015 22:47:43 for cheshirekow by
1.8.6