Commit Graph

113 Commits

Author SHA1 Message Date
Kevin Ring bf99d52e65 Ensure depot stays alive while lock is held. 2024-12-23 15:32:38 +11:00
Kevin Ring 5932243050 Better explanation of AsyncSystem copying, waitInMainThread->wait 2024-12-05 11:37:43 +11:00
Ashley Rogers eccca564df Merge from main 2024-12-02 14:35:27 -05:00
Kevin Ring af821e11a4 Fix test failures. 2024-11-29 19:04:48 +11:00
Kevin Ring 3b92b9ee43 Use functions instead of marking them unused. 2024-11-26 21:57:56 +11:00
Kevin Ring d3fcc7a350 Remove unused example function. 2024-11-26 21:53:28 +11:00
Kevin Ring a81cf47f8c Mark some examples maybe_unused. 2024-11-26 21:51:33 +11:00
Kevin Ring 4584adbe3b Fix compile errors in examples. 2024-11-26 21:48:12 +11:00
Kevin Ring 5375b250b1 Link to reference docs, other tweaks. 2024-11-26 21:44:37 +11:00
Kevin Ring 352cd6571e Merge remote-tracking branch 'origin/main' into thread-safety-doc 2024-11-26 16:35:56 +11:00
Kevin Ring 9d139570e0 SharedFuture and thread safety sections. 2024-11-25 22:29:46 +11:00
Kevin Ring 0516288a18 "Creating Futures" and "Promises" section of docs. 2024-11-25 20:56:26 +11:00
Kevin Ring 79ebf9fec7 Merge remote-tracking branch 'origin/main' into thread-safety-doc 2024-11-25 18:01:36 +11:00
Ashley Rogers cca8871eef Include both catch2 headers 2024-11-22 11:30:45 -05:00
Ashley Rogers f82d65bead Change Catch2 header 2024-11-22 11:17:21 -05:00
Kevin Ring 0aaf58daee More AsyncSystem doc. 2024-11-18 20:59:30 +11:00
Kevin Ring 09bc31add7 Further AsyncSystem doc. 2024-11-18 17:13:50 +11:00
Kevin Ring 89dfc44bdc Remove use of GSL.
Change gsl::span to std::span, and replace the few uses of gsl::narrow
with an alternative.
2024-11-06 15:16:03 +11:00
Kevin Ring e3c3daf6c3 Move SharedAsset to CesiumUtility.
This avoids adding a new dependency on CesiumAsync to CesiumGltf.
2024-10-30 12:49:07 +11:00
Kevin Ring a9d6c6a316 Fix another clang warning. 2024-10-29 21:17:07 +11:00
Kevin Ring 323de96de2 Fix clang warning. 2024-10-29 21:11:53 +11:00
Kevin Ring 1eee18f71c Fix recursive mutex locking bug. 2024-10-29 20:56:04 +11:00
Kevin Ring c5533b7ead Cleanup. 2024-10-28 20:55:29 +11:00
Ashley Rogers b61dc5cdca Merge branch 'main' of github.com:CesiumGS/cesium-native into all-with-void-futures 2024-09-30 16:13:04 -04:00
Kevin Ring c7268ccb9b Fix error on clang. 2024-09-28 11:21:30 +10:00
Kevin Ring 87ee2e36aa Support for mutable lambdas in `catch` functions. 2024-09-28 10:55:32 +10:00
Kevin Ring 116ee2dcb6 Support `AsyncSystem::all` on void Futures. 2024-06-04 16:06:40 +10:00
Brian L 90e1ce3895 Add additional reject test for explicit throw 2024-05-24 15:04:12 -06:00
Kevin Ring 9e9abb015a Don't hang waiting for a future that rejects. 2024-05-22 17:55:41 +10:00
Kevin Ring cd232f6b50 Add a couple more tests, remove unneeded header. 2024-04-04 21:33:28 +11:00
Kevin Ring 0428735c98 No spin waiting, add SharedFuture::waitInMainThread. 2024-04-04 19:04:10 +11:00
Kevin Ring 613637dcae Add AsyncSystem::waitInMainThread. 2024-03-04 19:08:23 +11:00
Kevin Ring 86fce69b30 Add Future::thenPassThrough. 2023-11-17 16:33:47 +11:00
Kevin Ring a59ffac3ef A few more test cases, and tweak the logic so they pass. 2023-07-27 22:00:58 +10:00
Brian L 8abe88353a Add support for cases where we only need Etag or Last-Modified to cache 2023-07-26 09:52:51 -06:00
Brian L 53689f1123 Modify shouldCacheRequest for additional no-cache cases. Add more unit tests 2023-07-25 12:21:13 -06:00
Brian L 018a7380b8 Refactor using std::optional. Fixup unit tests 2023-07-25 11:11:23 -06:00
Brian L 29f2625708 Add unit tests similar to Google 3D Tiles response headers 2023-07-22 10:06:35 -06:00
Brian L ce3bd6ff5a Fix for unit tests (function rename) 2023-07-21 15:45:49 -06:00
Kevin Ring 35db73e0cb Fix another warning. 2023-06-01 12:29:44 +10:00
Kevin Ring 4c0f85e897 Fix warning on VS2017 and VS2019. 2023-06-01 12:08:56 +10:00
Kevin Ring 224f392c31 Cleanup and tests. 2023-06-01 11:45:24 +10:00
Kevin Ring 77c7badf9e Add _CRT_SECURE_NO_WARNINGS to test file.
Previously tinyxml2 was doing this for all our source files.
2023-01-20 16:39:00 +11:00
Kevin Ring cc75a318d1 Fix GCC/Clang compiler error. 2022-10-16 00:34:00 +11:00
Kevin Ring f498c631de startRequest -> reqest. 2022-01-20 11:08:23 +11:00
Kevin Ring 518b7cbaf0 Rename IAssetAccessor methods, allow use of any verb. 2022-01-20 11:00:29 +11:00
Kevin Ring 0eaed9270f Fix mac segfault by putting repeated types in unnamed namespace. 2021-11-24 19:19:56 -05:00
Nithin Pranesh 664f08370f Move forward arbitrary future time to fix test 2021-10-21 13:39:40 -04:00
Marco Hutter 0e827f7afd Updated includes based on clang-format with Regroup
This MAINLY inserted some blank lines between
the blocks.
2021-09-26 17:46:27 +02:00
Kevin Ring c2aa1885cd Add `Future::isReady`. 2021-08-23 19:44:36 +10:00