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(); }