MCPcopy Create free account
hub / github.com/BowenFu/hspp / commitAny

Function commitAny

include/concurrent.h:875–881  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

873// any_committer
874
875inline auto commitAny(std::any wseData)
876{
877 auto idx = std::type_index(wseData.type());
878 auto iter = anyCommitters().find(idx);
879 (hassert | iter != anyCommitters().end() | "Cannot find commiter of this type!").run();
880 iter->second(wseData);
881}
882
883constexpr auto commitChangesToMemory = toFunc<> | [](Integer wstamp, typename WriteSet::Data wset)
884{

Callers 1

concurrent.hFile · 0.85

Calls 2

runMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected