Marco Hutter
588c5a1ab9
Add noexcept for default constructors
...
C26455: Default constructor may not throw.
2021-09-15 01:35:34 +02:00
Marco Hutter
5949134156
Fixed noexcept specifiers
...
It's hard to make them consisten for the JSON part...
2021-09-15 00:54:54 +02:00
Marco Hutter
97a2757e39
Added missing noexcept specifiers
...
Reported as "C26440 Function ... can be declared noexcept"
2021-09-14 16:12:50 +02:00
Ian Lilley
265f0be89f
fixed formatting
2021-09-08 15:30:36 -04:00
Ian Lilley
51fc68e97b
fixed cachedControlIter type
2021-09-08 15:18:47 -04:00
Kevin Ring
c2aa1885cd
Add `Future::isReady`.
2021-08-23 19:44:36 +10:00
Kevin Ring
b64e7dc0d3
Revert "Add Future::isReady."
...
This reverts commit 168f2c21aa .
2021-08-23 19:43:43 +10:00
Kevin Ring
168f2c21aa
Add Future::isReady.
2021-08-23 19:40:23 +10:00
Kevin Ring
84d9d94725
Formatting.
2021-08-04 14:32:09 +10:00
Kevin Ring
5fa7f7237b
Fix compile errors when tracing is enabled.
2021-08-04 14:20:38 +10:00
Kevin Ring
883c40f4aa
Enabling chaining to another Future in a catch.
2021-07-23 15:43:51 +10:00
Kevin Ring
b7df34b49c
Allow catching a shared future.
2021-07-23 13:41:35 +10:00
Kevin Ring
f1ea6bd4ea
Allow use of `all` with SharedFutures.
2021-07-16 15:27:58 +10:00
Kevin Ring
76b8e283a7
Fix clang error.
2021-07-16 12:46:59 +10:00
Kevin Ring
d755d1c7e5
Add doc for share method.
2021-07-16 12:41:59 +10:00
Kevin Ring
3f45992843
More tests for SharedFuture
2021-07-16 12:36:54 +10:00
Kevin Ring
ae04eb1f8c
Fix build.
2021-07-16 12:28:53 +10:00
Kevin Ring
7d5823478f
Merge remote-tracking branch 'origin/future-all' into shared-future
2021-07-16 12:16:40 +10:00
Kevin Ring
3bd41c440f
Merge remote-tracking branch 'origin/async-system-tests' into future-all
2021-07-16 12:16:19 +10:00
Kevin Ring
f86ab223b7
Fix race condition in tests.
2021-07-16 11:09:17 +10:00
Kevin Ring
858f7ef5eb
WIP SharedFuture
2021-07-15 23:37:55 +10:00
Kevin Ring
e89b5f01f6
Formatting.
2021-07-15 18:03:13 +10:00
Kevin Ring
2079b56624
Add catchImmediately, more tests.
2021-07-15 18:02:00 +10:00
Kevin Ring
7dff5a9fc9
Formatting.
2021-07-15 14:06:58 +10:00
Kevin Ring
7f6f1e3687
Add `all` method to AsyncSystem.
2021-07-15 14:06:29 +10:00
Kevin Ring
99fe6a35ac
Formatting.
2021-07-14 21:32:24 +10:00
Kevin Ring
e6e0561641
Move Promise to a separate file.
2021-07-14 21:31:52 +10:00
Kevin Ring
4c541cda73
Fix forwarding for WithTracing and unwrapFuture.
2021-07-14 21:25:16 +10:00
Kevin Ring
d836b63b51
Rename dispatchZeroOrOneMainThreadTask to dispatchOneMainThreadTask.
...
And also improve its doc.
2021-07-14 17:01:51 +10:00
Kevin Ring
f6f7ba4450
Merge remote-tracking branch 'origin/main' into async-system-tests
2021-07-14 16:56:54 +10:00
baothientran
050ef4019c
Merge pull request #275 from CesiumGS/catch2-with-angle
...
Use angle brackets to #include catch2.
2021-07-08 23:00:31 -04:00
Kevin Ring
ae8977e70f
Fix a mysterious thread_local related segfault.
2021-07-08 22:13:12 +10:00
Kevin Ring
ad11fffb42
Add specialization for Promise<void>.
2021-07-07 14:40:10 +10:00
Kevin Ring
a1ebce1dcd
Allow direct creation of a Promise.
...
Rather than the JavaScript-like create a future by providing a callback
that is given a promise. This can be less exception safe (allow
exceptions to escape from a Future-returning method instead of being
turned into Promise rejection) but also tends to be much easier to work
with.
2021-07-07 14:12:15 +10:00
Kevin Ring
b2ac5a70f6
Fix a race condition in a test.
2021-07-07 00:53:54 +10:00
Kevin Ring
8f7570ccdd
Avoid slicing exception objects.
2021-07-07 00:32:46 +10:00
Kevin Ring
355c486683
Make Future::wait return T and throw on reject.
2021-07-06 23:29:59 +10:00
Kevin Ring
17a16a4dc7
AsyncSystem test improvements.
2021-07-06 22:12:42 +10:00
Kevin Ring
2c88c6c282
Formatting.
2021-07-06 19:02:18 +10:00
Kevin Ring
490114c648
Add some tests for AsyncSystem.
2021-07-06 19:01:46 +10:00
Kevin Ring
4e45bab460
Use angle brackets to #include catch2.
2021-07-04 22:57:11 +10:00
Kevin Ring
bf25e2b925
Changes from review.
2021-06-30 09:53:24 +10:00
Kevin Ring
a74941bf53
Refactor schedulers.
2021-06-27 22:37:32 +10:00
Kevin Ring
287bde9573
typedef -> using
2021-06-26 23:25:08 +10:00
Kevin Ring
f0ee99a714
Actually track the thread pool threads.
2021-06-26 23:14:12 +10:00
Kevin Ring
38a1faea12
Better names for tracing macros.
2021-06-26 00:11:52 +10:00
Kevin Ring
8b7832ba83
WIP overhaul of macros for tracing across threads.
2021-06-25 21:11:40 +10:00
Kevin Ring
a711e01f24
Add doc about AsyncSystem lifetime woes.
2021-06-24 17:06:34 +10:00
Kevin Ring
669bdefeec
Fix clang warnings.
2021-06-22 21:00:28 +10:00
Kevin Ring
e0865d075a
Formatting.
2021-06-22 20:44:54 +10:00
Kevin Ring
43c5b3d474
Fix test failures.
2021-06-22 18:17:32 +10:00
Kevin Ring
628b11325d
Formatting.
2021-06-22 17:35:53 +10:00
Kevin Ring
6ece726757
Fix problems when tracing is disabled.
2021-06-22 17:19:33 +10:00
Kevin Ring
0fa144f516
Make "immediately" the default for continuations.
2021-06-22 15:31:30 +10:00
Kevin Ring
f7e4bb9d66
Allow trace begin/end to be outside async process.
2021-06-22 14:06:50 +10:00
Kevin Ring
e9fdefc99b
Add some doc.
2021-06-22 13:27:10 +10:00
Kevin Ring
09b4e393de
More cleanup of tracing macros.
2021-06-22 12:26:07 +10:00
Kevin Ring
44a69d4cda
Clean up tracing API.
2021-06-21 17:33:59 +10:00
Kevin Ring
fa285f7d29
Access cache DB from a dedicated thread.
2021-06-16 17:29:47 +10:00
Kevin Ring
5b88b652b7
Make ContinuationFutureType actually a Future.
2021-06-16 15:22:29 +10:00
Kevin Ring
109201530a
Split AsyncSystem.h into multiple files.
2021-06-16 15:06:42 +10:00
Kevin Ring
161fe0044e
Fix up CatchFunction with a parameter.
2021-06-16 12:50:21 +10:00
Kevin Ring
599d60d464
More efficient catch, less duplication.
2021-06-15 22:17:43 +10:00
Kevin Ring
5f82892528
Don't dispatch worker thread tasks unnecessarily.
2021-06-15 13:57:23 +10:00
Kevin Ring
2f93260a93
Support .then of Future<void>, and more tracing.
2021-06-10 15:46:49 +10:00
Kevin Ring
0b4618914c
Better request tracing.
2021-06-09 11:28:06 +10:00
Kevin Ring
b5d54f07a9
Better macro names.
2021-06-09 10:21:35 +10:00
Kevin Ring
45f24d5177
Generalize thread overhead tracing.
2021-06-09 10:00:14 +10:00
Kevin Ring
ca9cc41064
Improved load tracing.
2021-06-07 22:57:45 +10:00
Kevin Ring
50d5428855
Add option to prefix all sqlite3 symbols with cesium_.
2021-05-27 16:19:38 +10:00
Kevin Ring
8ce2000840
Hacky sqlite renaming.
2021-05-25 22:24:26 +10:00
Kevin Ring
f9b697acc0
Better sqlite includes handling.
2021-05-25 22:06:45 +10:00
Marco Hutter
51e43bbd49
Comment fixes for clang formatting
2021-04-29 17:06:34 +02:00
Jordi Torres
6333b1cb0a
First pass of clang tidy
...
Mainly caching else after return, not using empty() instead of size() == 0, missing const references to avoid copies and removing redundant initializations
2021-04-12 13:22:03 +02:00
Bao Tran
23af407de7
remove improper move
2021-03-24 11:34:51 -04:00
Shehzan Mohammed
8a2957d32f
Run clang format
2021-03-08 20:39:46 -05:00
Kevin Ring
589a0098fc
Merge pull request #145 from CesiumGS/install
...
Add ability to CMake install cesium-native
2021-03-05 16:03:29 +11:00
Kevin Ring
da0b567120
Fix some install bits.
2021-03-05 14:04:28 +11:00
Marco Hutter
f1078aeb4c
Use bytes for raw data
2021-03-04 17:22:38 +01:00
Shehzan Mohammed
887744202d
Remove other PRIVATE flags from link libraries
2021-03-04 10:50:19 -05:00
Shehzan Mohammed
3faff010d7
Installing thirdparty deps working on linux
2021-03-03 20:47:31 -05:00
Kevin Ring
34bbd2aa31
WIP cmake install.
2021-03-04 09:48:09 +11:00
Samuel Vargas
2e14c98350
Fix error with SQLITE3 / CesiumAsync on Windows
2021-03-02 15:36:07 -05:00
Samuel Vargas
5d03477551
Rearchitecture cesium-native's CMake structure
...
This is necessary to support using cesium-native as submodule in
in asset-pipeline
- `draco` and `sqlite3` are guarded with if target blocks to allow
asset-pipeline to provide their own version of the targets.
- Tests are now a dedicated target that clients don't have to build
- Test sources / headers are now a target property instead of using the $<BUILD_INTERFACE... hack
- Added common include variables in extern/CMakeLists.txt
- Defined `RAPIDJSON_HAS_CXX11_RVALUE_REFS` for move support for RapidJson
- Private include directories are automatically extracted via CMake magic
for use in catch tests
- Globbing is now wrapped in a dedicated function that allows one to use
CONFIGURE_DEPENDS depending on their preferences (defaults to OFF)
to retain the old behavior.
2021-03-02 14:28:04 -05:00
Kevin Ring
b8f430d079
Move exception results.
2021-03-01 17:06:33 +11:00
Kevin Ring
e950991824
Doc for AsyncSystem::wait.
2021-02-26 21:47:01 +11:00
Kevin Ring
5b616af8b0
Ion auth via OAuth2.
2021-02-25 22:48:22 +11:00
Kevin Ring
2e42fd45fb
Adjust for recent changes in master.
2021-02-24 13:54:33 +11:00
Kevin Ring
a69628b785
Merge remote-tracking branch 'origin/master' into ion-ui
2021-02-24 12:59:44 +11:00
Kevin Ring
b14aa5e292
Make ResponseCacheControl private.
2021-02-23 15:11:08 +11:00
Kevin Ring
e24f817b02
Add missing override.
2021-02-22 19:17:15 +11:00
Kevin Ring
b3a37be4a2
Remove unused function declarations.
2021-02-22 18:28:48 +11:00
Kevin Ring
7aff67dc09
Fix clang warning.
2021-02-22 18:23:47 +11:00
Kevin Ring
0150af9161
CacheAssetRequest tweaks.
2021-02-22 18:19:17 +11:00
Kevin Ring
18c209e60c
Remove commented-out code.
2021-02-22 18:01:32 +11:00
Kevin Ring
aa95beea21
CacheItem cleanup.
2021-02-22 17:58:36 +11:00
Kevin Ring
bd157685d4
Remove commented-out code.
2021-02-22 17:46:10 +11:00
Kevin Ring
e2f09ed2a3
Merge remote-tracking branch 'origin/disk-cache' into disk-cache-tweaks
2021-02-22 17:38:58 +11:00
Kevin Ring
58073f97fe
Close sqlite connection properly.
2021-02-22 17:37:11 +11:00
Kevin Ring
1b8bbabf8e
Fix tests.
2021-02-22 17:33:24 +11:00