folly::InitThreadFactory::newThread

Creates a thread that runs the initializer, the function, then the finalizer.

Synopsis

Declared in <folly/executors/thread_factory/InitThreadFactory.h>

virtual
std::thread
newThread(Func&& func) override;

Return Value

The newly created thread.

Parameters

NameDescription
funcThe function to run on the new thread.