thread()

Structure

Description

Runs a function on a new detached thread. Accepts a lambda or std::function.

Syntax

void thread(std::function fn)

Parameters

NameTypeDescription
fnstd::functionthe function to run on a separate thread

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...