Commit 45ccac9
committed
Job system for activity tracking
Add a registry system centered on `class Registry`. The system supports automatic first-pass registration at construction time.
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` and `ContextResources`, etc. There's only one remaining `StorageManager` member variable; it's in the mixin class. The `storage_manager()` accessor functions are also in the same place.
`class JobRoot` is now a base class of `class Context`, now split into `ContextBase` and `Context` so that the storage manager member variable is available for the `JobRoot` constructor.
`class JobBranch` is now a base class of `class Query` and `class Consolidator`, among others. Rework all the constructors to take a single `JobParent` argument rather than separate arguments for resources, cancellation sources, and storage managers.
`JobParent::make_cancellation_source` is now the sole source of `CancellationSource` objects.
Add `Context::cancel_all_tasks()`, currently as a proxy for the same function in `StorageManager`. This allowed removal of the accessor `storage_manager()` in the context C API handle. Remove now-unused `tiledb_ctx_handle_t::make_cancellation_source()`.1 parent 3c8733b commit 45ccac9
File tree
59 files changed
+3051
-597
lines changed- test/src
- tiledb
- api
- c_api_test_support/storage_manager_stub
- c_api
- context
- group
- common
- registry
- test
- sm
- c_api
- consolidator
- global_state
- group
- query_plan/test
- query
- dimension_label
- serialization
- storage_manager
- doc
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
59 files changed
+3051
-597
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2398 | 2398 | | |
2399 | 2399 | | |
2400 | 2400 | | |
2401 | | - | |
2402 | | - | |
2403 | | - | |
2404 | | - | |
2405 | | - | |
| 2401 | + | |
2406 | 2402 | | |
2407 | 2403 | | |
2408 | | - | |
2409 | | - | |
2410 | | - | |
2411 | | - | |
2412 | | - | |
| 2404 | + | |
2413 | 2405 | | |
2414 | 2406 | | |
2415 | 2407 | | |
| |||
2442 | 2434 | | |
2443 | 2435 | | |
2444 | 2436 | | |
2445 | | - | |
2446 | | - | |
2447 | | - | |
2448 | | - | |
2449 | | - | |
| 2437 | + | |
2450 | 2438 | | |
2451 | 2439 | | |
2452 | | - | |
2453 | | - | |
2454 | | - | |
2455 | | - | |
2456 | | - | |
| 2440 | + | |
2457 | 2441 | | |
2458 | 2442 | | |
2459 | 2443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 71 | + | |
| 72 | + | |
77 | 73 | | |
78 | 74 | | |
79 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
499 | | - | |
| 499 | + | |
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
| 509 | + | |
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | | - | |
59 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments