mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated smartcontract code
- updated smartcontract code - fixed bug in liteserver listening socket - updated documentation
This commit is contained in:
parent
38c3e39066
commit
b978e27b2f
63 changed files with 3185 additions and 81 deletions
|
@ -32,8 +32,13 @@ struct RawCancellationToken {
|
|||
class CancellationToken {
|
||||
public:
|
||||
explicit operator bool() const {
|
||||
// Empty CancellationToken is never cancelled
|
||||
if (!token_) {
|
||||
return false;
|
||||
}
|
||||
return token_->is_cancelled_.load(std::memory_order_acquire);
|
||||
}
|
||||
CancellationToken() = default;
|
||||
explicit CancellationToken(std::shared_ptr<detail::RawCancellationToken> token) : token_(std::move(token)) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue