File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
Thread.h - An runnable object
3
3
4
- Contains information about the running Thread, such as:
5
- Delay between calls,
6
- If it should be runned,
4
+ Thread is responsable for holding the "action" for something,
5
+ also, it responds if it "should" or "should not" run, based on
6
+ the current time;
7
7
8
- ThreadController is an extended class of Thread, since you can include
8
+ For instructions, go to https://github.com/ivanseidel/ArduinoTimer
9
9
10
10
Created by Ivan Seidel Gomes, March, 2013.
11
11
Released into the public domain.
@@ -40,7 +40,7 @@ class Thread{
40
40
Thread (void (*callback)(void ) = NULL , long _interval = 0 );
41
41
42
42
// Set the desired interval for calls, and update _cached_next_run
43
- Thread setInterval (long _interval);
43
+ virtual Thread setInterval (long _interval);
44
44
45
45
// Return if the Thread should be runned or not
46
46
virtual bool shouldRun (long time = -1 );
Original file line number Diff line number Diff line change 4
4
Basicaly, what it does is to keep track of current Threads and run when
5
5
necessary.
6
6
7
- ThreadController is an extended class of Thread, since you can include
7
+ ThreadController is an extended class of Thread, because of that,
8
+ it allows you to add a ThreadController inside another ThreadController...
8
9
10
+ For instructions, go to https://github.com/ivanseidel/ArduinoTimer
9
11
10
12
Created by Ivan Seidel Gomes, March, 2013.
11
13
Released into the public domain.
You can’t perform that action at this time.
0 commit comments