std::packaged_task::make_ready_at_thread_exit
Aus cppreference.com
< cpp | thread | packaged task
![]() | This page has been machine-translated from the English version of the wiki using Google Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
void make_ready_at_thread_exit( ArgTypes... ); | (seit C++11) | |
Ruft die gespeicherte Aufgabe mit
args
als Argumente. Der Rückgabewert der Aufgabe oder Ausnahmen geworfen werden in der gemeinsamen Zustand gespeichert. Der gemeinsame Staat nicht bereit gemacht und bis in die aktuelle Thread beendet alle Objekte Gewinde local Lagerdauer zerstört werden. Nach und alle Threads warten hierfür sind freigegeben .Original:
Calls the stored task with
args
as the arguments. The return value of the task or any exceptions thrown are stored in the shared state. The shared state is not made ready until the current thread exits and all objects of thread local storage duration are destroyed. After and any threads waiting for this are unblocked.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Inhaltsverzeichnis |
[Bearbeiten]Parameter
args | - | die Parameter beim Aufruf der gespeicherten Aufgabe passieren Original: the parameters to pass on invocation of the stored task The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[Bearbeiten]Rückgabewert
(None)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten]Ausnahmen
std::future_error auf den folgenden Fehler:
Original:
std::future_error on the following error conditions:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- Die gespeicherte Aufgabe wurde bereits aufgerufen. Der Fehler Kategorie wird
promise_already_satisfied
gesetzt .Original:The stored task has already been invoked. The error category is set topromise_already_satisfied
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - *this hat keinen gemeinsamen Staat. Der Fehler Kategorie wird no_state gesetzt .Original:*this has no shared state. The error category is set to no_state.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[Bearbeiten]Beispiel
This section is incomplete Reason: no example |
[Bearbeiten]Siehe auch
führt die Funktion Original: executes the function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (öffentliche Elementfunktion) |