ios stuff + need some work

This commit is contained in:
vladislav.khorev committed 2013-02-20 17:41:51 +00:00
1 parent a68e798a89
commit 407ee3868f
3 files changed
+44 -3

No files matched your search

+13 -2
View File
@@ -31,11 +31,22 @@ namespace SE
else
{
RETURNTYPE result;
boost::mutex ServiceLock;
boost::function<void()> cover_f = [&result, f]() { result = f(); };
ServiceLock.lock();
boost::function<void()> cover_f = [&result, &ServiceLock, f]()
{
result = f();
ServiceLock.unlock();
};
MainThreadIoService.post(cover_f);
ServiceLock.lock();
ServiceLock.unlock();
return result;
}
/*