FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ObjectiveRTOS/src/runnable.cpp at main · ezasm/ObjectiveRTOS · GitHub
ezasm
/
ObjectiveRTOS
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
4
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ObjectiveRTOS
/
src
/
runnable.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
27 lines (20 loc) · 397 Bytes
Breadcrumbs
ObjectiveRTOS
/
src
/
runnable.cpp
Copy path
File metadata and controls
27 lines (20 loc) · 397 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#
include
"
runnable.h
"
#
include
"
scheduler.h
"
#
include
"
management_functions.h
"
runnable::runnable
()
{
time_to_run = tick_counter;
next_obj =
nullptr
;
task_context =
nullptr
;
}
void
runnable::start_task
(
unsigned
long
delay)
{
time_to_run += delay;
add_task_to_queue
(
this
);
}
runnable::~runnable
()
{
remove_task_from_queue
(
this
);
if
(task_context !=
nullptr
)
delete[]
task_context;
}
Back
|
FazBrowse Home
|
New Git URL