summaryrefslogtreecommitdiffstats
path: root/state.rb
diff options
context:
space:
mode:
authorCasey Dahlin <cdahlin@redhat.com>2008-10-02 16:47:21 -0400
committerCasey Dahlin <cdahlin@redhat.com>2008-10-02 16:47:21 -0400
commit8c7991eb45f1ae6ea742a653b7182204951eeea3 (patch)
treed7e09b2e5ee5f4d2999b5bb9571b839cd0c9d5d9 /state.rb
parentcd308a554c228409f2077f577bd97882a00f6e32 (diff)
downloadupstate-8c7991eb45f1ae6ea742a653b7182204951eeea3.tar.gz
upstate-8c7991eb45f1ae6ea742a653b7182204951eeea3.tar.xz
upstate-8c7991eb45f1ae6ea742a653b7182204951eeea3.zip
Trigger depsolving at appropriate times
A state rising or falling now causes dep resolution
Diffstat (limited to 'state.rb')
-rw-r--r--state.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/state.rb b/state.rb
index 1db4c2c..2e24a50 100644
--- a/state.rb
+++ b/state.rb
@@ -107,6 +107,7 @@ class State
@active = false
self.class.depends.each{ |x| x.remove_hold(x) }
State.gc
+ State.depsolve_all
end
# Determine if two State objects are equivalent
@@ -199,6 +200,7 @@ private
self.class.depends.each{ |x| x.hold(self) }
self.class.rising_edge.call(@params)
@active = true
+ State.depsolve_all
end
# Inform other states that they may no longer depend on this one