![]() |
![]() |
![]() |
![]() |
$deps
Synopsis
Description
$deps lists dependencies for a method object. Two method objects have a dependency if one method reads data that the other method writes. The dependency determines which method runs first if both methods are queued at the same time. Methods indicate how they read and write data using the read and write attributes.
This command lists both the dependencies a particular method has on other methods and those dependencies that other methods have on it.
Examples
Given the simple combination of two modules, you can use the $deps command to verify that the exit_process.update method has a dependency on the copy_on_change.copy_on_change method. This dependency is created because the do_exit parameter of exit_process has the read attribute set and the output parameter of the copy_on_change module has the write attribute set.
OM(SingleWindowApp) -> GMOD.copy_on_change copy_on_change;
OM(SingleWindowApp) -> GMOD.exit_process exit_process {
OM(SingleWindowApp) -> do_exit => <-.copy_on_change.output;
OM(SingleWindowApp) -> };
OM(SingleWindowApp) -> $deps exit_process.update
function: Root.Applications.SingleWindowApp.exit_process.update depends on:
--------------------------------------------
func: Root.Applications.SingleWindowApp.copy_on_change.copy_on_change
read/write on: Root.Applications.SingleWindowApp.copy_on_change.output
weight: 1, rc: 1, req=1
============================================
OM(SingleWindowApp) ->
![]() |
![]() |
![]() |
![]() |