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:
-rw-r--r--source/creator/creator.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 6c4af7be95e..38a03867a57 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -247,8 +247,12 @@ int main(int argc,
/* Unbuffered stdout makes stdout and stderr better synchronized, and helps
* when stepping through code in a debugger (prints are immediately
- * visible). */
+ * visible). However disabling buffering causes lock contention on windows
+ * see T76767 for detais, since this is a debugging aid, we do not enable
+ * the unbuffered behavior for release builds. */
+#ifndef NDEBUG
setvbuf(stdout, NULL, _IONBF, 0);
+#endif
#ifdef WIN32
/* We delay loading of openmp so we can set the policy here. */