Clean up unused comment in flow.h
This commit is contained in:
parent
bf01d9b879
commit
03b102d86a
|
@ -802,12 +802,8 @@ public:
|
|||
Future(const Future<T>& rhs) : sav(rhs.sav) {
|
||||
if (sav)
|
||||
sav->addFutureRef();
|
||||
// if (sav->endpoint.isValid()) std::cout << "Future copied for " << sav->endpoint.key << std::endl;
|
||||
}
|
||||
Future(Future<T>&& rhs) noexcept : sav(rhs.sav) {
|
||||
rhs.sav = 0;
|
||||
// if (sav->endpoint.isValid()) std::cout << "Future moved for " << sav->endpoint.key << std::endl;
|
||||
}
|
||||
Future(Future<T>&& rhs) noexcept : sav(rhs.sav) { rhs.sav = 0; }
|
||||
Future(const T& presentValue) : sav(new SAV<T>(1, 0)) { sav->send(presentValue); }
|
||||
Future(T&& presentValue) : sav(new SAV<T>(1, 0)) { sav->send(std::move(presentValue)); }
|
||||
Future(Never) : sav(new SAV<T>(1, 0)) { sav->send(Never()); }
|
||||
|
@ -819,7 +815,6 @@ public:
|
|||
#endif
|
||||
|
||||
~Future() {
|
||||
// if (sav && sav->endpoint.isValid()) std::cout << "Future destroyed for " << sav->endpoint.key << std::endl;
|
||||
if (sav)
|
||||
sav->delFutureRef();
|
||||
}
|
||||
|
@ -864,9 +859,7 @@ public:
|
|||
int getFutureReferenceCount() const { return sav->getFutureReferenceCount(); }
|
||||
int getPromiseReferenceCount() const { return sav->getPromiseReferenceCount(); }
|
||||
|
||||
explicit Future(SAV<T>* sav) : sav(sav) {
|
||||
// if (sav->endpoint.isValid()) std::cout << "Future created for " << sav->endpoint.key << std::endl;
|
||||
}
|
||||
explicit Future(SAV<T>* sav) : sav(sav) {}
|
||||
|
||||
private:
|
||||
SAV<T>* sav;
|
||||
|
|
Loading…
Reference in New Issue