GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::launch(3) C++ Standard Libary std::launch(3)

std::launch - std::launch


Defined in header <future>
enum class launch : /* unspecified */ {


async = /* unspecified */,
deferred = /* unspecified */, (since C++11)
/* implementation-defined */


};


Specifies the launch policy for a task executed by the std::async function.
std::launch is an enumeration used as BitmaskType.


The following constants denoting individual bits are defined by the standard
library:


Constant Explanation
std::launch::async the task is executed on a different thread, potentially by
launching a new thread
std::launch::deferred the task is executed on the calling thread the first time its
result is requested (lazy evaluation)


In addition, implementations are allowed to:


* define additional bits and bitmasks to specify restrictions on task interactions
applicable to a subset of launch policies, and
* enable those additional bitmasks for the first (default) overload of std::async.


async runs a function asynchronously (potentially in a new thread) and returns a
(C++11) std::future that will hold the result
(function template)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.