fixing bugs
This commit is contained in:
parent
da5bd119ab
commit
f6f7cc380c
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user