The following functions can be used to synchronise working sets in-process without any need for a loopback socket connection
void HalfDuplexSync(WorkingSetMachine* wsSrc, WorkingSetMachine* wsDst)
Apply all changes in wsSrc
to wsDst
, but not the reverse.
Assumes that wsSrc
and wsDst
are part of the same PersistStore
. [todo: lift this
restriction]
This function is intended to be called without locks on the associated PSpaces.
void FullDuplexSync(WorkingSetMachine* ws1, WorkingSetMachine* ws2)
Like HalfDuplexSync
except that changes are applied in both directions.