projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Destroy promise/future callback functions before waking waiters
[folly.git]
/
folly
/
futures
/
Promise-inl.h
diff --git
a/folly/futures/Promise-inl.h
b/folly/futures/Promise-inl.h
index c55d34ca66e48e069918c726ebcd2c1ea67d3ed5..61d4d933e2e1234fc3cffb52d198613e4ecccf77 100644
(file)
--- a/
folly/futures/Promise-inl.h
+++ b/
folly/futures/Promise-inl.h
@@
-59,6
+59,10
@@
void Promise<T>::throwIfRetrieved() {
}
}
+template <class T>
+Promise<T>::Promise(detail::EmptyConstruct) noexcept
+ : retrieved_(false), core_(nullptr) {}
+
template <class T>
Promise<T>::~Promise() {
detach();