mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-01-13 07:53:22 -05:00
addeb9d2f6
I moved the clocks member from LockedDatabase to Database to make this happen, so the new DatabaseGuard (replacing a direct MutexGuard<LockedDatabase>) can access it before acquiring the lock. I also made the type of clock a type parameter of Database (and so several other things throughout the system). This allowed me to drop the Arc<>, but more importantly it means that the Clocks trait doesn't need to stay object-safe. I plan to take advantage of that shortly. |
||
---|---|---|
.. | ||
testdata | ||
upgrade | ||
Cargo.toml | ||
check.rs | ||
coding.rs | ||
db.rs | ||
dir.rs | ||
lib.rs | ||
raw.rs | ||
recording.rs | ||
schema.proto | ||
schema.rs | ||
schema.sql | ||
testutil.rs | ||
writer.rs |