Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/python/generic/bpy_threads.c
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff)
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/python/generic/bpy_threads.c')
-rw-r--r--source/blender/python/generic/bpy_threads.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/blender/python/generic/bpy_threads.c b/source/blender/python/generic/bpy_threads.c
index 1f80caa6182..2474b08180f 100644
--- a/source/blender/python/generic/bpy_threads.c
+++ b/source/blender/python/generic/bpy_threads.c
@@ -29,20 +29,20 @@
/* analogue of PyEval_SaveThread() */
BPy_ThreadStatePtr BPY_thread_save(void)
{
- PyThreadState *tstate = PyThreadState_Swap(NULL);
- /* note: tstate can be NULL when quitting Blender */
+ PyThreadState *tstate = PyThreadState_Swap(NULL);
+ /* note: tstate can be NULL when quitting Blender */
- if (tstate && PyEval_ThreadsInitialized()) {
- PyEval_ReleaseLock();
- }
+ if (tstate && PyEval_ThreadsInitialized()) {
+ PyEval_ReleaseLock();
+ }
- return (BPy_ThreadStatePtr)tstate;
+ return (BPy_ThreadStatePtr)tstate;
}
/* analogue of PyEval_RestoreThread() */
void BPY_thread_restore(BPy_ThreadStatePtr tstate)
{
- if (tstate) {
- PyEval_RestoreThread((PyThreadState *)tstate);
- }
+ if (tstate) {
+ PyEval_RestoreThread((PyThreadState *)tstate);
+ }
}