Skip to content
Snippets Groups Projects
Commit 240e7fca authored by Enrico Guiraud's avatar Enrico Guiraud Committed by Danilo Piparo
Browse files

[TDF] Avoid locking of a weak_ptr in the event loop

This commit removes the need of locking a weak pointer during the event loop,
taking advantage of the fact that we are guaranteed by TDataFrame's logic that
during the event loop TDataFrameImpl must remain in scope.

TDataFrame{Branch,Filter,Action} now store a raw pointer to the TDFImpl object.
TDataFrameInterface stores the weak_ptr<TDFImpl> in their stead.
As it was before, TDataFrameInterface is responsible for checking that the
TDataFrameImpl is still in scope before booking transformations and actions.
parent 5c10e26a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment