F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
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
()
17
{
18
id
= pthread_self();
19
}
20
TaskId::~TaskId
()
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
()
const
32
{
33
return
this->id;
34
}
35
}
Os
Definition:
File.cpp:7
Os::TaskId::getRepr
TaskIdRepr getRepr() const
Definition:
TaskId.cpp:31
Os::TaskId::TaskId
TaskId()
Definition:
TaskId.cpp:16
Os::TaskId::~TaskId
~TaskId()
Definition:
TaskId.cpp:20
Os::TaskId::operator==
bool operator==(const TaskId &T) const
Definition:
TaskId.cpp:23
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