aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/libcxx/src/future.cpp
diff options
context:
space:
mode:
authordanlark <danlark@yandex-team.ru>2022-02-10 16:46:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:10 +0300
commitbaa58daefa91fde4b4769facdbd2903763b9c6a8 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /contrib/libs/cxxsupp/libcxx/src/future.cpp
parent3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff)
downloadydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/src/future.cpp')
-rw-r--r--contrib/libs/cxxsupp/libcxx/src/future.cpp28
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 29d84aa07c..4c59f89e56 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);
}