ios stuff + need some work
This commit is contained in:
1 parent
a68e798a89
commit
407ee3868f
3 files changed
+44
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user