]> gerrit.simantics Code Review - simantics/platform.git/commit
Update structure and value cache when refreshing variable 77/2477/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Wed, 31 Oct 2018 14:03:38 +0000 (16:03 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 20 Nov 2018 09:13:14 +0000 (09:13 +0000)
commit9798e48820fd197631e124121b6f69b4f44077f7
treed07a1a6d083b9242eb7e0487da311c803cf63bbf
parent68f350c72673e7052ccadf3b352bc01d232a5f85
Update structure and value cache when refreshing variable

Previous implementation only updated value cache contents after the
previous cached results expired, which could cause unacceptable delays
in new NodeManager query results. Also, if there were no listeners for
the NodeManager query results, results wouldn't get updated anymore.

gitlab #173

Change-Id: I162fbddea7a5b312c7dceb1448d6ef1cc1f07b73
(cherry picked from commit 6da46379296ecec681d6b72d053f82f637ed1c3c)
bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/NodeCache.java
bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/NodeSupport.java
bundles/org.simantics.simulator.toolkit.db/src/org/simantics/simulator/toolkit/db/StandardVariableNodeManager.java