fixing bugs

This commit is contained in:
Vladislav Khorev 2013-03-09 16:23:12 +00:00
parent da5bd119ab
commit f6f7cc380c

View File

@ -42,21 +42,8 @@ namespace SE
else
{
boost::mutex serviceLock;
ST::MainThreadIoService.post(f);
boost::function<void()> func =
[&f, &serviceLock] ()
{
f();
serviceLock.unlock();
};
serviceLock.lock();
ST::MainThreadIoService.post(func);
serviceLock.lock();
serviceLock.unlock();
}