Commit
a865eb0a7814203dd96536b0832a13e172fcf682
by Arnaud Fioriniss: replace granularity with checkpoint attribute and add synchronization
This patch creates an attribute for the pss to keep track of the
checkpoints. This process was initially put forth by Matthew Khouzam,
Fabien Reumont-Locke improved it.
Previously, to avoid issues with multithread access, a latch was used for
the checkpoints attribute with the waitForCheckpoints method. To replace
this mechanism, synchronization was added on the methods that modify the
transient state.
Signed-off-by: Abdellah Rahmani <rahmaniabdellah1994@gmail.com>
Change-Id: I9af752ae154fceb1c31ed57b64f0c17650c55703