Files
MuditaOS/module-sys/SystemManager/doc/services_synchronization.puml
Piotr Tański 65119cb495 [EGD-5027] Services synchronization introduced
Dependencies between services are now supported.
2021-02-10 12:37:42 +01:00

31 lines
475 B
Plaintext

@startuml
actor Driver
participant "System Manager" as sysmgr
participant "Dependency Graph" as graph
participant Service as srv
Driver -> sysmgr: Pass a list\nof services
sysmgr -> graph **: create
|||
sysmgr -> graph: addServices()
|||
sysmgr -> graph: topologicalSort()
|||
activate graph
graph --> sysmgr: sorted services
deactivate graph
destroy graph
|||
loop for each service in sorted services
sysmgr -> srv: Start
srv --> sysmgr: Confirmation
end
|||
@enduml