xtd 0.2.0
Loading...
Searching...
No Matches
cancellation_token_source.h
Go to the documentation of this file.
1
4#pragma once
6#include "../core_export.h"
7#include "../object.h"
8#include "../types.h"
9
11namespace xtd {
13 namespace threading {
39 struct data;
40 public:
42
44 cancellation_token_source(int32 milliseconds_delay);
47
54
56
58 bool is_cancellation_requested() const noexcept;
59
60 const cancellation_token& token() const noexcept;
62
64
67
68 private:
69 bool can_be_canceled() const noexcept;
71
72 friend class cancellation_token;
73 xtd::sptr<data> data_;
74 };
75 }
76}
Contains xtd::threading::cancellation_token class.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
Signals to a xtd::threading::cancellation_token that it should be canceled.
Definition cancellation_token_source.h:38
Propagates notification that operations should be canceled.
Definition cancellation_token.h:39
Encapsulates operating system specific objects that wait for exclusive access to shared resources.
Definition wait_handle.h:52
#define core_export_
Define shared library export.
Definition core_export.h:13
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Represents a time interval.
Definition time_span.h:29