Commit 80565a30 authored by Hanno Schlichting's avatar Hanno Schlichting

More standard names

parent 8caeb7f4
...@@ -28,11 +28,11 @@ REPORTS = {} ...@@ -28,11 +28,11 @@ REPORTS = {}
class ThreadDict(object): class ThreadDict(object):
@classmethod @classmethod
def get_entry(cls, key): def get(cls, key):
return cls.value.get(key, None) return cls.value.get(key, None)
@classmethod @classmethod
def set_entry(cls, key, value): def set(cls, key, value):
with cls.lock: with cls.lock:
cls.value[key] = value cls.value[key] = value
...@@ -164,7 +164,7 @@ class CatalogPlan(object): ...@@ -164,7 +164,7 @@ class CatalogPlan(object):
self.duration = None self.duration = None
def plan(self): def plan(self):
benchmark = PriorityMap.get_entry(self.key) benchmark = PriorityMap.get(self.key)
if not benchmark: if not benchmark:
return None return None
...@@ -210,7 +210,7 @@ class CatalogPlan(object): ...@@ -210,7 +210,7 @@ class CatalogPlan(object):
def stop(self): def stop(self):
self.end_time = time.time() self.end_time = time.time()
self.duration = self.end_time - self.start_time self.duration = self.end_time - self.start_time
PriorityMap.set_entry(self.key, self.benchmark) PriorityMap.set(self.key, self.benchmark)
self.log() self.log()
def log(self): def log(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment