diff options
author | Casey Dahlin <cdahlin@redhat.com> | 2008-10-02 16:47:21 -0400 |
---|---|---|
committer | Casey Dahlin <cdahlin@redhat.com> | 2008-10-02 16:47:21 -0400 |
commit | 8c7991eb45f1ae6ea742a653b7182204951eeea3 (patch) | |
tree | d7e09b2e5ee5f4d2999b5bb9571b839cd0c9d5d9 /state.rb | |
parent | cd308a554c228409f2077f577bd97882a00f6e32 (diff) | |
download | upstate-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.rb | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |