diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-19 03:21:24 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-19 03:21:24 +0400 |
commit | 4dd7d4110a06422b5a86a609b7cc7687bd570fef (patch) | |
tree | 983554da24330943407ac010b4b66ed7da13b66a /source/blender/python/intern/bpy_driver.c | |
parent | 7335a4af048d955105873500b5e4a402cd8ee00c (diff) |
replace macro PYC_INTERPRETER_ACTIVE for PyC_IsInterpreterActive() function call,
(indirectly referenced Python define of ~30 lines, most were optimized out but still caused some code bloat).
Diffstat (limited to 'source/blender/python/intern/bpy_driver.c')
-rw-r--r-- | source/blender/python/intern/bpy_driver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/intern/bpy_driver.c b/source/blender/python/intern/bpy_driver.c index 481758db252..7141db7352a 100644 --- a/source/blender/python/intern/bpy_driver.c +++ b/source/blender/python/intern/bpy_driver.c @@ -123,7 +123,7 @@ static void bpy_pydriver_update_dict(const float evaltime) void BPY_driver_reset(void) { PyGILState_STATE gilstate; - bool use_gil = true; /* !PYC_INTERPRETER_ACTIVE; */ + bool use_gil = true; /* !PyC_IsInterpreterActive(); */ if (use_gil) gilstate = PyGILState_Ensure(); @@ -162,7 +162,7 @@ static void pydriver_error(ChannelDriver *driver) * * (old)note: PyGILState_Ensure() isn't always called because python can call * the bake operator which intern starts a thread which calls scene update - * which does a driver update. to avoid a deadlock check PYC_INTERPRETER_ACTIVE + * which does a driver update. to avoid a deadlock check PyC_IsInterpreterActive() * if PyGILState_Ensure() is needed - see [#27683] * * (new)note: checking if python is running is not threadsafe [#28114] @@ -199,7 +199,7 @@ float BPY_driver_exec(ChannelDriver *driver, const float evaltime) return 0.0f; } - use_gil = true; /* !PYC_INTERPRETER_ACTIVE; */ + use_gil = true; /* !PyC_IsInterpreterActive(); */ if (use_gil) gilstate = PyGILState_Ensure(); |