commit | 954958115f5a3a8ee275e0e734a6f62cc52aa3a7 | [log] [tgz] |
---|---|---|
author | Maria Glukhova <mariagl@google.com> | Mon Dec 03 16:20:55 2018 +0100 |
committer | Maria Glukhova <mariagl@google.com> | Thu Dec 06 11:27:56 2018 +0000 |
tree | 9e1530ca20fc0c36bb76964296cbc9c6f6ba2893 | |
parent | ac50bceeb5653f371292d46cda73f330b007b429 [diff] |
[ledger] Thread safety annotations for when we use mutex Change of logic in GetOrCreateDbAtPath: store the db itself in the same struct (former DbInitializationState, now DbWithInitializationState) as the initialization state, so we can guard the access to it with the same mutex. TEST=ledger_unittests (LevelDbFactoryTest) + manually checked that removing the locks generates errors at compile time. LE-646 #done Change-Id: I8eade843d1a4ae29d9fb2cf7a5c20467fa1676b1
Peridot is a framework for composed, intelligent and distributed user experiences.
Applications not explicitly designed to interoperate (and possibly implemented in different programming languages) are ephemerally downloaded and dynamically composed to run in a shared context. The framework manages application lifecycle, resources and view hierarchy; and well as context and suggestion infrastructure.
State of Peridot experiences is transparently synchronized across user devices using a distributed offline-first storage system.