|
STL Memory Versioning
|
Revision class for for keeping track of segment branches. More...
#include <revision.h>
Public Member Functions | |
| Revision () | |
| Construct for the very first Revision. More... | |
| Revision (std::shared_ptr< Segment > root, std::shared_ptr< Segment > current) | |
| Construct a new Revision for new thread. More... | |
Public Attributes | |
| std::shared_ptr< Segment > | root |
| Segment from which this Revision was created. More... | |
| std::shared_ptr< Segment > | current |
| Current Segment of that Revision. More... | |
| std::thread | thread |
| Thread stuct to join that Revision after it is completed. More... | |
Static Public Attributes | |
| static thread_local std::shared_ptr< Revision > | currentRevision = std::make_shared<Revision>() |
| The current Revision for current thread. More... | |
Revision class for for keeping track of segment branches.
Definition at line 21 of file revision.h.
| Revision::Revision | ( | ) |
Construct for the very first Revision.
Definition at line 8 of file revision.cpp.
| std::shared_ptr<Segment> Revision::current |
|
static |
The current Revision for current thread.
It is static and thread_local so that for each thread only one Revision can exist
Definition at line 65 of file revision.h.
| std::shared_ptr<Segment> Revision::root |
Segment from which this Revision was created.
Definition at line 44 of file revision.h.
| std::thread Revision::thread |
Thread stuct to join that Revision after it is completed.
Definition at line 57 of file revision.h.