diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
commit | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch) | |
tree | 26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /contrib/libs/cxxsupp/libcxx/src/future.cpp | |
parent | cb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff) | |
download | ydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/src/future.cpp')
-rw-r--r-- | contrib/libs/cxxsupp/libcxx/src/future.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/src/future.cpp b/contrib/libs/cxxsupp/libcxx/src/future.cpp index 4c59f89e56..29d84aa07c 100644 --- a/contrib/libs/cxxsupp/libcxx/src/future.cpp +++ b/contrib/libs/cxxsupp/libcxx/src/future.cpp @@ -1,8 +1,8 @@ //===------------------------- future.cpp ---------------------------------===// // -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -92,7 +92,7 @@ __assoc_sub_state::set_value() { unique_lock<mutex> __lk(__mut_); if (__has_value()) - __throw_future_error(future_errc::promise_already_satisfied); + __throw_future_error(future_errc::promise_already_satisfied); __state_ |= __constructed | ready; __cv_.notify_all(); } @@ -102,7 +102,7 @@ __assoc_sub_state::set_value_at_thread_exit() { unique_lock<mutex> __lk(__mut_); if (__has_value()) - __throw_future_error(future_errc::promise_already_satisfied); + __throw_future_error(future_errc::promise_already_satisfied); __state_ |= __constructed; __thread_local_data()->__make_ready_at_thread_exit(this); } @@ -112,7 +112,7 @@ __assoc_sub_state::set_exception(exception_ptr __p) { unique_lock<mutex> __lk(__mut_); if (__has_value()) - __throw_future_error(future_errc::promise_already_satisfied); + __throw_future_error(future_errc::promise_already_satisfied); __exception_ = __p; __state_ |= ready; __cv_.notify_all(); @@ -123,7 +123,7 @@ __assoc_sub_state::set_exception_at_thread_exit(exception_ptr __p) { unique_lock<mutex> __lk(__mut_); if (__has_value()) - __throw_future_error(future_errc::promise_already_satisfied); + __throw_future_error(future_errc::promise_already_satisfied); __exception_ = __p; __thread_local_data()->__make_ready_at_thread_exit(this); } @@ -172,13 +172,13 @@ __assoc_sub_state::__sub_wait(unique_lock<mutex>& __lk) void __assoc_sub_state::__execute() { - __throw_future_error(future_errc::no_state); + __throw_future_error(future_errc::no_state); } future<void>::future(__assoc_sub_state* __state) : __state_(__state) { - __state_->__attach_future(); + __state_->__attach_future(); } future<void>::~future() @@ -219,7 +219,7 @@ future<void> promise<void>::get_future() { if (__state_ == nullptr) - __throw_future_error(future_errc::no_state); + __throw_future_error(future_errc::no_state); return future<void>(__state_); } @@ -227,7 +227,7 @@ void promise<void>::set_value() { if (__state_ == nullptr) - __throw_future_error(future_errc::no_state); + __throw_future_error(future_errc::no_state); __state_->set_value(); } @@ -235,7 +235,7 @@ void promise<void>::set_exception(exception_ptr __p) { if (__state_ == nullptr) - __throw_future_error(future_errc::no_state); + __throw_future_error(future_errc::no_state); __state_->set_exception(__p); } @@ -243,7 +243,7 @@ void promise<void>::set_value_at_thread_exit() { if (__state_ == nullptr) - __throw_future_error(future_errc::no_state); + __throw_future_error(future_errc::no_state); __state_->set_value_at_thread_exit(); } @@ -251,7 +251,7 @@ void promise<void>::set_exception_at_thread_exit(exception_ptr __p) { if (__state_ == nullptr) - __throw_future_error(future_errc::no_state); + __throw_future_error(future_errc::no_state); __state_->set_exception_at_thread_exit(__p); } |