HomeWildfire Games

Split Receiver from SharedState

Description

Split Receiver from SharedState

The Function is not restricted to std::function anymore. Move only function become possible.

Differential Revision: https://code.wildfiregames.com/D4840

Event Timeline

vladislavbelov added inline comments.
/ps/trunk/source/ps/Future.h
46–49

The comment is outdated.

297

What will be constructed here?

phosit added inline comments.
/ps/trunk/source/ps/Future.h
297

An object with the same type as m_Receiver. std::shared_ptr<FutureSharedStateDetail::Receiver<ResultType>> in this case.

/ps/trunk/source/ps/Future.h
297

Where temp and &temp->receiver will go to as arguments?

phosit added inline comments.
/ps/trunk/source/ps/Future.h
297

I think i answerd this question already somewhere else...
They are used to construct the std::shared_ptr. The aliasing constructor is used.