Lunchbox
1.8.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
install
include
lunchbox
threadID.h
1
2
/* Copyright (c) 2010-2013, Stefan Eilemann <eile@eyescale.ch>
3
* 2012, Daniel Nachbaur <danielnachbaur@gmail.com>
4
*
5
* This library is free software; you can redistribute it and/or modify it under
6
* the terms of the GNU Lesser General Public License version 2.1 as published
7
* by the Free Software Foundation.
8
*
9
* This library is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12
* details.
13
*
14
* You should have received a copy of the GNU Lesser General Public License
15
* along with this library; if not, write to the Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
*/
18
19
#ifndef LUNCHBOX_THREADID_H
20
#define LUNCHBOX_THREADID_H
21
22
#include <
lunchbox/api.h
>
// LUNCHBOX_API definition
23
24
#include <ostream>
25
26
namespace
lunchbox
27
{
28
namespace
detail {
class
ThreadID; }
29
31
class
ThreadID
32
{
33
public
:
35
LUNCHBOX_API
ThreadID
();
36
38
LUNCHBOX_API
ThreadID
(
const
ThreadID& from );
39
41
LUNCHBOX_API
~ThreadID
();
42
44
LUNCHBOX_API ThreadID&
operator =
(
const
ThreadID& from );
45
47
LUNCHBOX_API
bool
operator ==
(
const
ThreadID& rhs )
const
;
48
53
LUNCHBOX_API
bool
operator !=
(
const
ThreadID& rhs )
const
;
54
55
private
:
56
detail::ThreadID*
const
_impl;
57
friend
class
Thread
;
58
59
friend
LUNCHBOX_API
60
std::ostream&
operator <<
( std::ostream& os,
const
ThreadID& );
61
};
62
64
LUNCHBOX_API std::ostream&
operator <<
( std::ostream&,
const
ThreadID
& );
65
}
66
#endif // LUNCHBOX_THREADID_H
Generated on Thu Jun 27 2013 13:28:50 for Lunchbox by
1.8.1.2