mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Storage: Make setters globally atomic.
Previously, setters were locally but not globally atomic because they used GetEntry() (globally atomic) in conjunction with locally atomic gets/sets to the StorageEntry. To support synchronizing network handshakes they need to be globally atomic. GetEntry() has been removed due to this issue, so a helper was added to StorageTest instead.
This commit is contained in:
@@ -92,7 +92,6 @@ class Storage {
|
||||
|
||||
// Finds, but does not create entry. Returns nullptr if not found.
|
||||
std::shared_ptr<StorageEntry> FindEntry(StringRef name) const;
|
||||
std::shared_ptr<StorageEntry> GetEntry(StringRef name);
|
||||
|
||||
// Accessors required by Dispatcher.
|
||||
void EnableUpdates() { m_updates_enabled = true; }
|
||||
|
||||
Reference in New Issue
Block a user