F´ Flight Software - C/C++ Documentation
NASA-v2.0.1
A framework for building embedded system applications to NASA flight quality standards.
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
b
c
d
g
h
i
m
r
s
t
v
w
Variables
Typedefs
Enumerations
Enumerator
a
b
f
h
i
n
o
p
s
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
b
d
e
f
g
h
i
l
m
n
p
q
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
l
m
n
o
p
q
r
s
t
w
Related Functions
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
Functions
f
i
m
s
u
Variables
Typedefs
Enumerations
Enumerator
c
d
f
m
p
r
s
t
Macros
a
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
TaskId.cpp
Go to the documentation of this file.
1
// File: TaskId.cpp
2
// Author: Ben Soudry (benjamin.s.soudry@jpl.nasa.gov)
3
// Nathan Serafin (nathan.serafin@jpl.nasa.gov)
4
// Date: 29 June, 2018
5
//
6
// POSIX implementation of TaskId type.
7
8
extern
"C"
{
9
#include <pthread.h>
10
};
11
12
#include <
Os/TaskId.hpp
>
13
14
namespace
Os
15
{
16
TaskId::TaskId
(
void
)
17
{
18
id
= pthread_self();
19
}
20
TaskId::~TaskId
(
void
)
21
{
22
}
23
bool
TaskId::operator==
(
const
TaskId
& T)
const
24
{
25
return
pthread_equal(
id
, T.id);
26
}
27
bool
TaskId::operator!=
(
const
TaskId
& T)
const
28
{
29
return
!pthread_equal(
id
, T.id);
30
}
31
TaskIdRepr
TaskId::getRepr
(
void
)
const
32
{
33
return
this->id;
34
}
35
}
Os
Definition:
File.cpp:7
Os::TaskId::~TaskId
~TaskId(void)
Definition:
TaskId.cpp:20
Os::TaskId::getRepr
TaskIdRepr getRepr(void) const
Definition:
TaskId.cpp:31
Os::TaskId::operator==
bool operator==(const TaskId &T) const
Definition:
TaskId.cpp:23
Os::TaskId::TaskId
TaskId(void)
Definition:
TaskId.cpp:16
Os::TaskId::operator!=
bool operator!=(const TaskId &T) const
Definition:
TaskId.cpp:27
Os::TaskId
Definition:
TaskId.hpp:18
TaskId.hpp
Os
Posix
TaskId.cpp
Generated by
1.8.17