Home
last modified time | relevance | path

Searched refs:Borrowable (Results 1 – 16 of 16) sorted by relevance

/external/pigweed/pw_sync/public/pw_sync/
Dborrow.h95 friend class Borrowable;
113 class Borrowable {
115 constexpr Borrowable(GuardedType& object, Lock& lock) noexcept in Borrowable() function
118 Borrowable(const Borrowable&) = default;
119 Borrowable& operator=(const Borrowable&) = default;
120 Borrowable(Borrowable&& other) = default;
121 Borrowable& operator=(Borrowable&& other) = default;
Dinline_borrowable.h37 public Borrowable<GuardedType, LockInterface> {
39 using Base = Borrowable<GuardedType, LockInterface>;
/external/pigweed/pw_kvs/
Dfake_flash_test_key_value_store.cc68 sync::Borrowable<KeyValueStore> borrowable_kvs(test_kvs,
73 sync::Borrowable<KeyValueStore>& TestKvs() { in TestKvs()
/external/pigweed/pw_sync/
Dborrow_test.cc44 Borrowable<Foo, Lock> borrowable_foo_;
106 Borrowable<Foo, BasicLockable> borrowable_foo = std::move(borrowable_foo_); in TEST_F()
117 const Borrowable<Foo, BasicLockable>& other = borrowable_foo_; in TEST_F()
118 Borrowable<Foo, BasicLockable> borrowable_foo(other); in TEST_F()
Ddocs.rst745 Borrowable section in Critical Section Lock Helpers
747 The Borrowable is a helper construct that enables callers to borrow an object
764 Before we explain why Borrowable is useful, it's important to understand the argument
846 This is why ``Borrowable`` exists.
848 Why use Borrowable? argument
850 ``Borrowable`` offers code-size efficient way to enable external locking that is
858 pw::sync::Borrowable<BankAccount, pw::sync::Mutex> bobs_acount(
870 into the ACK timeout you'd like to use for the transaction. Borrowable can help
872 ``Borrowable``.
879 .. doxygenclass:: pw::sync::Borrowable argument
[all …]
/external/pigweed/pw_spi/public/pw_spi/
Ddevice.h35 Device(sync::Borrowable<Initiator>& initiator, in Device()
203 sync::Borrowable<Initiator>& initiator_;
/external/pigweed/pw_blob_store/public/pw_blob_store/
Dblob_store.h352 sync::Borrowable<kvs::KeyValueStore>& kvs, in BlobStore()
551 sync::Borrowable<kvs::KeyValueStore>& kvs_;
614 sync::Borrowable<kvs::KeyValueStore>& kvs, in BlobStoreBuffer()
/external/pigweed/pw_kvs/public/pw_kvs/
Dtest_key_value_store.h22 sync::Borrowable<KeyValueStore>& TestKvs();
/external/pigweed/pw_spi/
Dspi_test.cc62 sync::Borrowable<Initiator> borrowable_initiator_;
Ddocs.rst41 auto borrowable_initiator = pw::sync::Borrowable<Initiator&>(initiator);
50 The use of ``pw::sync::Borrowable`` in the interface provides a
246 the ``pw::sync::Borrowable`` object, where the ``pw::spi::Initiator`` object is
/external/pigweed/pw_blob_store/size_report/
Dbase.cc40 pw::sync::Borrowable<pw::kvs::KeyValueStore> borrowable_kvs(
Dbasic_blob.cc44 pw::sync::Borrowable<pw::kvs::KeyValueStore> borrowable_kvs(
Ddeferred_write_blob.cc44 pw::sync::Borrowable<pw::kvs::KeyValueStore> borrowable_kvs(
/external/pigweed/pw_software_update/public/pw_software_update/
Dbundled_update_service.h94 sync::Borrowable<pw_software_update_BundledUpdateStatus, sync::Mutex> status_;
Dbundled_update_service_pwpb.h95 sync::Borrowable<BundledUpdateStatus::Message, sync::Mutex> status_;
/external/pigweed/pw_digital_io/
Ddocs.rst100 level. For example, by wrapping the line instance in ``pw::Borrowable``.