Udostępnij za pośrednictwem


Klasa cancellation_token_source

cancellation_token_source Klasy reprezentuje zdolność, aby anulować operację.

class cancellation_token_source;

Członkowie

Hh749985.collapse_all(pl-pl,VS.110).gifPubliczne konstruktory

Nazwa

Opis

Konstruktor cancellation_token_source::cancellation_token_source

Przeciążone.Konstrukcje cancellation_token_source obiektu.

cancellation_token_source:: ~ cancellation_token_source destruktor

Destructs cancellation_token_source obiektu.

Hh749985.collapse_all(pl-pl,VS.110).gifMetody publiczne

Nazwa

Opis

Metoda cancellation_token_source::Cancel

Anuluje tokenu źródłowego i wszystkie tokeny skojarzony z nim.

Metoda cancellation_token_source::create_linked_source

Przeciążone.Tworzy cancellation_token_source który anulowane, podczas wprowadzania token jest anulowana.

Metoda cancellation_token_source::get_token

Zwraca cancellation_token skojarzone z tym źródłem.

Hh749985.collapse_all(pl-pl,VS.110).gifPodmioty publiczne

Nazwa

Opis

cancellation_token_source::operator! = operatora

Określa, czy dwa cancellation_token_source obiekty reprezentują dwóch różnych źródeł token.

cancellation_token_source::operator = operatora

Przeciążone.Zastępuje zawartość jednej cancellation_token_source obiektu na inny.

cancellation_token_source::operator == operatora

Określa, czy dwa cancellation_token_source obiekty reprezentują to samo źródło token.

Uwagi

cancellation_token_source Może służyć do żądania anulowania operacji cancelable.

Użyj anulowanie metodę, aby ustawić wszystkie cancellation_tokenna związane z tym cancellation_toekn_source jako anulowane.

cancellation_token_sourcezachowuje się jak inteligentne wskaźnik i bezpiecznie przekazać wokół przez wartość.

Hierarchii dziedziczenia

cancellation_token_source

Wymagania

Nagłówek: ppl.h

Obszar nazw: współbieżności

Zobacz też

Informacje

Współbieżność obszaru nazw