Thomas Goyne
b7b2822082
Make it possible to disable the commit notifier background worker
...
This makes it much easier to write tests which test the work done on the
background thread.
2016-02-25 11:19:00 -08:00
Thomas Goyne
cfc88b6fd5
Rename CachedRealm to WeakRealmNotfier
2016-02-24 16:58:11 -08:00
Thomas Goyne
143cc3b696
Fix compilation with GCC 4.9
...
4.9 does not correctly implement C++14 aggregate initialization.
2016-02-24 16:58:11 -08:00
Thomas Goyne
99037a7c72
Add an AtomicSharedPtr implementation for gcc 4.9
2016-02-24 16:58:11 -08:00
Thomas Goyne
1e35324d97
Avoid holding locks while calling transaction::advance()
...
It can call user code due to change notifications, which leads to
deadlocks if that code then tries to add async queries (and advancing is
a potentially expensive operation, so doing it while holding a lock
inhibits parallelism anyway).
2016-02-24 16:58:11 -08:00
Thomas Goyne
8284340729
Remove redundant check in RealmCoordinator::advance_helper_shared_group_to_latest()
2016-02-24 16:58:11 -08:00
Thomas Goyne
4e18a99dfd
Update some out-of-date comments
2016-02-24 16:58:10 -08:00
Thomas Goyne
aa67216574
Write a much better comment about thread stuff for AsyncQuery
2016-02-24 16:58:10 -08:00
Thomas Goyne
ad46e307a2
Update the comments for Realm::Internal
2016-02-24 16:58:10 -08:00
Thomas Goyne
1430fcf474
Rename AsyncFriend to Interal
2016-02-24 16:58:10 -08:00
Thomas Goyne
c46a2a34de
Fix typos and minor errors in comments
2016-02-24 16:58:10 -08:00
Thomas Goyne
db7d6fa2a8
Don't hold onto the tableview between runs of async queries
...
Updating the table view in advance_read() can be very expensive, and the
updated data is never actually used.
2016-02-24 16:58:10 -08:00
Thomas Goyne
a95eb50915
Don't create background queries for Results on threads without runloops
2016-02-24 16:58:09 -08:00
Thomas Goyne
3e90c30571
Add more tests and fix bugs
2016-02-24 16:58:09 -08:00
Thomas Goyne
8c4f2a4f30
Reduce the scope of class friendships
2016-02-24 16:58:09 -08:00
Thomas Goyne
13e1054553
Don't continue to run queries in the background if the result is unused
2016-02-24 16:58:09 -08:00
Thomas Goyne
934263f76a
Automatically create the async query when converting to a TableView
2016-02-24 16:58:09 -08:00
Thomas Goyne
8f668fdf09
Use a single AsyncQuery per Results regardless of number of callbacks added
2016-02-24 16:58:08 -08:00
Thomas Goyne
d165458601
Add support for running queries asynchronously
2016-02-24 16:58:08 -08:00
Thomas Goyne
565e39a287
Merge pull request #47 from realm/tg/core-0.96.2
...
Update to core 0.96.2
2016-02-24 10:12:04 -08:00
Thomas Goyne
bceec93a69
Update to core 0.96.2
2016-02-23 15:01:35 -08:00
Scott Kyle
f26415cd02
Bump version to 0.10.0
2016-02-21 20:43:13 -08:00
Tim Anglade
4df1b9785f
Fix getting started link
2016-02-21 19:25:43 -08:00
Tim Anglade
36326217f8
Fix repo mention in README
2016-02-21 19:23:54 -08:00
Tim Anglade
ceee56cb9b
Fix ampersand in package.json
2016-02-21 19:19:55 -08:00
Scott Kyle
fb97973f64
Merge pull request #260 from realm/sk-package-json
...
Update package.json with stuff needed for npm
2016-02-21 19:09:09 -08:00
Tim Anglade
7a6bec9649
Tweaks
2016-02-21 19:07:47 -08:00
Scott Kyle
66572c139b
Update package.json with stuff needed for npm
...
Resolves #220
2016-02-21 19:07:33 -08:00
Scott Kyle
89ce54799f
Merge pull request #271 from realm/sk-docs-update
...
Update API docs with sorted/filtered changes
2016-02-21 19:03:49 -08:00
Tim Anglade
7cc2f69736
Merge pull request #264 from realm/km-js-fixlicense
...
License update
2016-02-21 18:56:59 -08:00
Scott Kyle
ab94f5f314
Merge pull request #270 from realm/sk-port-forward
...
Automatically forward port 8082 for Android
2016-02-21 18:05:09 -08:00
Scott Kyle
c1e5cb03cf
Update API docs with sorted/filtered changes
2016-02-21 17:51:58 -08:00
Ari Lazier
4c965fd09c
Merge pull request #269 from realm/al-example-class
...
Use classes in the example
2016-02-21 17:40:28 -08:00
Scott Kyle
52a1fa9196
Automatically forward port 8082 for Android
...
Fixes #249
2016-02-21 16:57:05 -08:00
Ari Lazier
349d227252
use classes in the examples
2016-02-21 12:16:42 -08:00
Scott Kyle
ba0ff5fbaf
Merge pull request #265 from realm/nh/fixes_255_debug_server
...
start debug server only on when using chrome debug
2016-02-19 16:25:14 -08:00
Nabil Hachicha
9bcebfaf29
PR feedback
2016-02-19 22:50:30 +00:00
Scott Kyle
f4f6d67a4c
Change license headers on analytics files
2016-02-19 14:30:38 -08:00
Scott Kyle
f5a15473b9
Merge pull request #263 from realm/sk-packager-bugfix
...
No longer delete before npm installing local modules
2016-02-19 14:19:05 -08:00
Nabil Hachicha
76981229ab
start debug server only on when using chrome debug
2016-02-19 19:05:07 +00:00
Thomas Goyne
d87c41b352
Merge pull request #46 from realm/tg/remove-inorrect-move
...
Remove an incorrect std::move()
2016-02-19 09:42:53 -08:00
Thomas Goyne
52386c08e6
Merge pull request #44 from realm/tg/core-tarball-path
...
Fix dependency information for the core tarball
2016-02-19 09:42:31 -08:00
Scott Kyle
4647ab4543
Remove installArchives for Android from test script
...
This is no longer needed
2016-02-19 02:53:47 -08:00
Scott Kyle
d81ce5c49a
Update test script to always use nvm if possible
2016-02-19 02:53:10 -08:00
Scott Kyle
600a8909d3
Install all modules before running packager for tests
2016-02-19 02:28:59 -08:00
Scott Kyle
1ab3a8a985
No longer delete before npm installing local modules
...
This doesn't appear to have been necessary and seems to sometimes cause an issue because the packager will start and look for a JS file that was just deleted.
2016-02-19 02:03:54 -08:00
Thomas Goyne
ae9d41f9ce
Remove an incorrect std::move()
2016-02-18 19:05:02 -08:00
Thomas Goyne
055de67185
Fix dependency information for the core tarball
2016-02-18 19:02:54 -08:00
Scott Kyle
2e3a3b5db8
Merge pull request #257 from realm/sk-schema-prop
...
The schema property should be directly on constructor
2016-02-18 16:27:47 -08:00
Scott Kyle
54d5dd3aeb
Revert "Temporarily remove License from README"
...
This reverts commit 1cf4debd9f
.
2016-02-18 15:32:54 -08:00