-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[0.29.0][r] timers support for std, glib dispatchers
feat: timers support for std, glib dispatchers feat: interrupts safety for Arduino dispatcher
- Loading branch information
1 parent
1ced650
commit 3623a8b
Showing
44 changed files
with
628 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
@startuml | ||
mode compact | ||
scale 1 as 120 pixels | ||
|
||
<style> | ||
timingDiagram { | ||
.thread1 { | ||
BackgroundColor LightGreen | ||
} | ||
.thread2 { | ||
BackgroundColor LightSalmon | ||
} | ||
} | ||
</style> | ||
|
||
concise "Thread 1" as T1 <<thread1>> | ||
concise "Dispatcher Thread" as DT <<thread2>> | ||
concise "Signal" as S <<thread1>> | ||
concise "Mutex" as M | ||
concise OS | ||
|
||
@0 | ||
OS is "Block signals" #LightGreen | ||
T1 is emitEvent | ||
|
||
@+1 | ||
T1 -> M: lock | ||
M is Locked #LightGreen | ||
|
||
@+1 | ||
OS -> S: signal | ||
S is blocked #red | ||
|
||
@+1 | ||
T1 -> M: unlock | ||
M is {-} | ||
|
||
@+1 | ||
OS is {-} | ||
T1 is {-} | ||
T1 -> DT@+1: notify | ||
S is emitEvent | ||
M is Locked #LightSeaGreen | ||
|
||
@+1 | ||
DT -> M@+1: lock | ||
DT is blocked #red | ||
OS is "Block signals" #LightSalmon | ||
|
||
@+1 | ||
M is Locked #LightSalmon | ||
S is {-} | ||
DT is "Copy events" | ||
|
||
@+1 | ||
|
||
|
||
@+1 | ||
M is {-} | ||
|
||
@+1 | ||
OS is {-} | ||
DT is "Call event handlers" | ||
|
||
@+2 | ||
DT is {-} | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
@startuml | ||
mode compact | ||
scale 1 as 100 pixels | ||
|
||
<style> | ||
timingDiagram { | ||
.thread1 { | ||
BackgroundColor LightGreen | ||
} | ||
.thread2 { | ||
BackgroundColor LightSalmon | ||
} | ||
} | ||
</style> | ||
|
||
concise "Thread 1" as T1 <<thread1>> | ||
concise "Dispatcher Thread" as DT <<thread2>> | ||
concise "Signal" as S | ||
concise "Mutex" as M | ||
|
||
@0 | ||
M is Locked #LightGreen | ||
T1 is emitEvent | ||
|
||
@+1 | ||
T1 -> DT@+1: notify | ||
M is {-} | ||
T1 is {-} | ||
|
||
@+1 | ||
M is Locked #LightSalmon | ||
DT is "Copy events" | ||
|
||
@3 | ||
T1 is blocked #red | ||
@+1 | ||
T1 is emitEvent | ||
M is Locked #LightGreen | ||
@+1 | ||
T1 -> DT: notify | ||
T1 is {-} | ||
M is {-} | ||
|
||
@4 | ||
M is {-} | ||
DT is "Call event handlers" | ||
|
||
@+3 | ||
DT is {-} | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.