]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.impl/src/org/simantics/db/impl/query/QueryCacheBase.java
Trying to remove synchronization problems
[simantics/platform.git] / bundles / org.simantics.db.impl / src / org / simantics / db / impl / query / QueryCacheBase.java
index a75d6901079fa6d4bab47e41fe24c8524825c5fe..2d3c92d8242ed3259ea0518520262666cbabd423 100644 (file)
@@ -635,14 +635,12 @@ public class QueryCacheBase {
                }
        }
        
-       public static void waitPending(ReadGraphImpl graph, CacheEntry entry) throws DatabaseException {
-               
-               QueryProcessor processor = graph.processor;
+       public static void waitPending(QueryProcessor processor, CacheEntry entry) throws DatabaseException {
                
                int counter = 0;
                while(entry.isPending()) {
                        try {
-                               SessionTask task = processor.getOwnTask(processor.thread.get());
+                               SessionTask task = null;//processor.getOwnTask(processor.thread.get());
                                if(task != null) {
                                        task.run(processor.thread.get());
                                } else {