From abe1d212b92a24ae8db0d955f855f88824e24f19 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 17 Mar 2013 22:17:53 +0000 Subject: [PATCH] Don't spinlock on CarlaThread::waitForStarted(), fixes #14 --- source/utils/CarlaThread.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/utils/CarlaThread.hpp b/source/utils/CarlaThread.hpp index 8a76bc7a1..0a9c3757e 100644 --- a/source/utils/CarlaThread.hpp +++ b/source/utils/CarlaThread.hpp @@ -200,7 +200,8 @@ public: if (timeout == 0) { - while (! fStarted) {} + while (! fStarted) + carla_msleep(1); } else {