Skip to content

Commit

Permalink
Remove the exclusive lock.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juti Noppornpitak committed Oct 6, 2016
1 parent 42f7da0 commit 1e9d836
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions imagination/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ def get(self, entity_id : str):
if entity_id == CORE_SELF_REFERENCE:
return self

with exclusive_lock(self.__internal_lock):
# On the first request, the core will be on lockdown.
if not self.is_on_lockdown():
self.lock_down()
self._generate_interception_graph()

if not info.activation_sequence:
new_sequence = self._calculate_activation_sequence(entity_id)
info.activation_sequence = new_sequence
# with exclusive_lock(self.__internal_lock):
# On the first request, the core will be on lockdown.
if not self.is_on_lockdown():
self.lock_down()
self._generate_interception_graph()

if not info.activation_sequence:
new_sequence = self._calculate_activation_sequence(entity_id)
info.activation_sequence = new_sequence

# Activate all dependencies.
for dependency_id in info.activation_sequence:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name = 'imagination',
version = '2.1.1',
version = '2.1.2',
description = 'Reusable Component Framework',
author = 'Juti Noppornpitak',
author_email = 'juti_n@yahoo.co.jp',
Expand Down

0 comments on commit 1e9d836

Please sign in to comment.