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

Method StopHandlerThread

src/api/api_server.cc:384–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384void
385APIServer::StopHandlerThread()
386{
387 /* Runs on FILE thread to make sure that it is serialized against */
388 /* {Start|Stop}HandlerThread and to allow calling pthread_join. */
389 if (!thread_->message_loop())
390 return;
391 thread_->message_loop()->PostTask(
392 FROM_HERE,
393 base::Bind(&APIServer::ThreadTearDown, this));
394 // Thread::Stop joins the thread.
395 thread_->Stop();
396}
397
398void
399APIServer::ThreadRun()

Callers

nothing calls this directly

Calls 1

StopMethod · 0.45

Tested by

no test coverage detected