Commit 0e066dda authored by Marshall Cline's avatar Marshall Cline Committed by Facebook Github Bot

'noexcept' on the 'detach' fns called from Future/Promise dtors

Summary: Core::detachFuture() & detachPromise() are called from dtors; make them 'noexcept'

Reviewed By: yfeldblum

Differential Revision: D7995163

fbshipit-source-id: 5c15e0516be2559a2ce1d283dc6fa75c2f506cd8
parent 63079c9b
...@@ -201,12 +201,12 @@ class Core final { ...@@ -201,12 +201,12 @@ class Core final {
} }
/// Called by a destructing Future (in the Future thread, by definition) /// Called by a destructing Future (in the Future thread, by definition)
void detachFuture() { void detachFuture() noexcept {
detachOne(); detachOne();
} }
/// Called by a destructing Promise (in the Promise thread, by definition) /// Called by a destructing Promise (in the Promise thread, by definition)
void detachPromise() { void detachPromise() noexcept {
DCHECK(result_); DCHECK(result_);
detachOne(); detachOne();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment