mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-17 09:06:26 +00:00
Fix typos and minor errors in comments
This commit is contained in:
parent
db7d6fa2a8
commit
c46a2a34de
@ -27,7 +27,7 @@ class Realm;
|
|||||||
|
|
||||||
namespace _impl {
|
namespace _impl {
|
||||||
|
|
||||||
// CachedRealm stores a weak reference to a Realm instance, along with all of
|
// CachedRealmBase stores a weak reference to a Realm instance, along with all of
|
||||||
// the information about a Realm that needs to be accessed from other threads.
|
// the information about a Realm that needs to be accessed from other threads.
|
||||||
// This is needed to avoid forming strong references to the Realm instances on
|
// This is needed to avoid forming strong references to the Realm instances on
|
||||||
// other threads, which can produce deadlocks when the last strong reference to
|
// other threads, which can produce deadlocks when the last strong reference to
|
||||||
|
@ -376,8 +376,8 @@ AsyncQueryCancelationToken Results::async(std::function<void (std::exception_ptr
|
|||||||
|
|
||||||
void Results::AsyncFriend::set_table_view(Results& results, realm::TableView &&tv)
|
void Results::AsyncFriend::set_table_view(Results& results, realm::TableView &&tv)
|
||||||
{
|
{
|
||||||
// If the previous TableView was never actually used, then generating new
|
// If the previous TableView was never actually used, then stop generating
|
||||||
// ones until the user actually uses the Results object again
|
// new ones until the user actually uses the Results object again
|
||||||
if (results.m_mode == Mode::TableView) {
|
if (results.m_mode == Mode::TableView) {
|
||||||
results.m_wants_background_updates = results.m_has_used_table_view;
|
results.m_wants_background_updates = results.m_has_used_table_view;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user