Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a job system, a set of base classes for jobs. The job system is generic, with a mixin class to add application-specific behavior. The mixin class for the library deals with
StorageManager
andContextResources
, etc. There's only one remainingStorageManager
member variable; it's in the mixin class. Thestorage_manager()
accessor functions are also in the same place.Add a registry system centered on
class Registry
. The system supports automatic first-pass registration at construction time. This registry is the basic for the tree structure in the job system.class JobRoot
is now a base class ofclass Context
, now split intoContextBase
andContext
so that the storage manager member variable is available for theJobRoot
constructor.class JobBranch
is now a base class ofclass Query
andclass Consolidator
, among others. Rework all the constructors to take a singleJobParent
argument rather than separate arguments for resources, cancellation sources, and storage managers.JobParent::make_cancellation_source
is now the sole source ofCancellationSource
objects. AddContext::cancel_all_tasks()
, currently as a proxy for the same function inStorageManager
. This allowed removal of the accessorstorage_manager()
in the context C API handle. Remove now-unusedtiledb_ctx_handle_t::make_cancellation_source()
.TYPE: IMPROVEMENT
DESC: Job system for activity tracking