void ThreadLauncher::launchThread() { m_isLaunching = true; CoreIPC::Connection::Identifier connectionIdentifier = createWebThread(); // We've finished launching the thread, message back to the main run loop. RunLoop::main()->dispatch(bind(&ThreadLauncher::didFinishLaunchingThread, this, connectionIdentifier)); }
void ThreadLauncher::launchThread() { m_isLaunching = true; CoreIPC::Connection::Identifier connectionIdentifier = createWebThread(); // We've finished launching the thread, message back to the main run loop. RunLoop::main()->scheduleWork(WorkItem::create(this, &ThreadLauncher::didFinishLaunchingThread, connectionIdentifier)); }