MCPcopy Create free account
hub / github.com/breach/thrust / StartHandlerThread

Method StartHandlerThread

src/api/api_server.cc:360–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358
359
360void
361APIServer::StartHandlerThread()
362{
363 /* Runs on FILE thread. */
364 base::Thread::Options options;
365 options.message_loop_type = base::MessageLoop::TYPE_IO;
366 if (!thread_->StartWithOptions(options)) {
367 BrowserThread::PostTask(
368 BrowserThread::UI, FROM_HERE,
369 base::Bind(&APIServer::ResetHandlerThread, this));
370 return;
371 }
372
373 thread_->message_loop()->PostTask(
374 FROM_HERE,
375 base::Bind(&APIServer::ThreadRun, this));
376}
377
378void
379APIServer::ResetHandlerThread()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected