- Finish fix for return values in PythonPolicy
- Put mutex and global _ret_val variable into ScriptAdapter instead of the global space, space which is anyway not accessible after decref'ing the corresponding python module git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@527 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
4ab3056c23
commit
8102eb8b7e
2 changed files with 5 additions and 3 deletions
|
@ -79,7 +79,7 @@ class ScriptAdapter :
|
|||
#
|
||||
# @param self The caller object
|
||||
def async_is_preemptive(self):
|
||||
_g_mutex.lock(ScriptAdapter._wrap_is_preemptive, self)
|
||||
self._g_mutex.lock(ScriptAdapter._wrap_is_preemptive, self)
|
||||
|
||||
def _wrap_is_preemptive(self):
|
||||
thread.start_new_thread(ScriptAdapter._wrap_is_preemptive_callback, (self,))
|
||||
|
@ -105,5 +105,5 @@ class ScriptAdapter :
|
|||
def get_return_value(self):
|
||||
return self._ret_val
|
||||
|
||||
def test_lock(self):
|
||||
def mutex_test_lock(self):
|
||||
return self._g_mutex.test()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue