From f6f7cc380c4e723b1a8209f57cd6680ba977d47d Mon Sep 17 00:00:00 2001 From: Vladislav Khorev Date: Sat, 9 Mar 2013 16:23:12 +0000 Subject: [PATCH] fixing bugs --- src/Utils/ThreadUtils.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/Utils/ThreadUtils.cpp b/src/Utils/ThreadUtils.cpp index eec7120..2ff9f6a 100644 --- a/src/Utils/ThreadUtils.cpp +++ b/src/Utils/ThreadUtils.cpp @@ -42,21 +42,8 @@ namespace SE else { - boost::mutex serviceLock; + ST::MainThreadIoService.post(f); - boost::function func = - [&f, &serviceLock] () - { - f(); - serviceLock.unlock(); - }; - - - serviceLock.lock(); - ST::MainThreadIoService.post(func); - - serviceLock.lock(); - serviceLock.unlock(); }