F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
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
c
f
h
i
l
m
n
o
p
s
t
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
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
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
c
t
u
w
Enumerations
b
c
d
e
f
g
h
i
m
o
p
q
s
t
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Related Functions
a
b
c
f
g
h
l
p
r
s
t
Files
File List
File Members
All
_
a
b
c
d
f
g
h
i
k
l
m
n
p
r
s
t
u
v
w
Functions
f
i
m
s
u
Variables
_
c
f
i
l
p
t
Typedefs
Enumerations
Enumerator
a
c
d
f
i
m
p
r
s
t
w
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
TaskCommon.cpp
Go to the documentation of this file.
1
#include <
Os/Task.hpp
>
2
#include <
Fw/Types/Assert.hpp
>
3
#include <string.h>
4
5
namespace
Os
{
6
7
TaskRegistry* Task::s_taskRegistry = 0;
8
NATIVE_INT_TYPE
Task::s_numTasks = 0;
9
10
NATIVE_INT_TYPE
Task::getNumTasks
(
void
) {
11
return
Task::s_numTasks;
12
}
13
14
15
I32
Task::getIdentifier
() {
16
return
m_identifier;
17
}
18
19
bool
Task::isStarted
(
void
) {
20
return
this->m_started;
21
}
22
23
void
Task::setStarted
(
bool
started) {
24
this->m_started = started;
25
}
26
27
bool
Task::wasSuspended
(
void
) {
28
return
this->m_suspendedOnPurpose;
29
}
30
31
POINTER_CAST
Task::getRawHandle
(
void
) {
32
return
this->m_handle;
33
}
34
35
void
Task::registerTaskRegistry
(
TaskRegistry
* registry) {
36
FW_ASSERT
(registry);
37
Task::s_taskRegistry = registry;
38
}
39
40
TaskRegistry::TaskRegistry
() {
41
42
}
43
44
TaskRegistry::~TaskRegistry
() {
45
46
}
47
48
}
Os::Task::setStarted
void setStarted(bool started)
set task to started when thread is fully up. Avoids a VxWorks race condition.
Definition:
TaskCommon.cpp:23
Os
Definition:
File.cpp:7
Os::Task::getNumTasks
static NATIVE_INT_TYPE getNumTasks(void)
Definition:
TaskCommon.cpp:10
Task.hpp
Os::TaskRegistry::TaskRegistry
TaskRegistry()
constructor for task registry
Definition:
TaskCommon.cpp:40
Os::Task::registerTaskRegistry
static void registerTaskRegistry(TaskRegistry *registry)
Definition:
TaskCommon.cpp:35
Os::Task::wasSuspended
bool wasSuspended(void)
returns whether or not task was suspended on purpose
Definition:
TaskCommon.cpp:27
Assert.hpp
FW_ASSERT
#define FW_ASSERT(...)
Definition:
Assert.hpp:9
Os::Task::isStarted
bool isStarted(void)
check to see if task is started
Definition:
TaskCommon.cpp:19
Os::TaskRegistry::~TaskRegistry
virtual ~TaskRegistry()
destructor for task registry
Definition:
TaskCommon.cpp:44
Os::Task::getRawHandle
POINTER_CAST getRawHandle()
Definition:
TaskCommon.cpp:31
Os::Task::getIdentifier
I32 getIdentifier(void)
get the identifier for the task
Definition:
TaskCommon.cpp:15
NATIVE_INT_TYPE
int NATIVE_INT_TYPE
native integer type declaration
Definition:
BasicTypes.hpp:29
Os::TaskRegistry
Definition:
Task.hpp:70
Os
TaskCommon.cpp
Generated by
1.8.19