-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment PPL-LLR-000134 At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use PPL-LLR-000438 For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
Weightwatch_Traits::Threshold and Delta shall denote unsigned long long. The computational-weight counter shall initially be zero and get() shall return a const reference to its current counter, without copying or allocating. The returned reference shall observe later admitted serial updates. In a thread-safe configuration, that counter/reference shall belong to the calling thread and shall not be used after that thread exits or from another thread. The checking slot shall initially be null and retain the watcher-owned protocol in 🔗 6. Published checking function and empty-queue transitions. In a thread-safe build the counter, checking slot and Threshold_Watcher<Weightwatch_Traits> queue shall all belong to the calling thread. Each watcher and its borrowed notification bindings shall be used and destroyed in that thread before it exits. Other threads may independently compute, register, cancel and dispatch their own budgets.
In a thread-safe build, the checking slot shall be a function-pointer proxy: assignment, conversion to void (*)(), invocation and independent copied snapshots shall retain their ordinary meanings. Assigning a local snapshot shall not change the live slot. A live-slot assignment shall not alter another thread's hook or the signal-notification gate. Direct field-address/type-trait compatibility with former raw/shared fields is not required; clients shall be rebuilt with matching library headers. Library and clients shall agree on the bool/function-pointer atomic capability selection; a compatible C++ ABI alone shall not permit mixing dispatcher modes. Clients shall not overwrite their checker while its queue contains events.
At an owner checkpoint that selects pending atomic-watchdog work, that work shall be published before checking computational thresholds. A notification arriving after the checkpoint's dispatch snapshot may be processed at the next checkpoint. With always-lock-free notification and function-pointer atomics, unexpired timers shall not install an extra checkpoint callback. Otherwise, ordinary owner code shall use a deferred per-thread hook; the signal action shall not access thread-local objects or call a potentially locking atomic operation.
-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment PPL-LLR-000134 At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use PPL-LLR-000438 For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
compute_delta(u, s) shall return the exact integer u2s when that result is representable in Delta. For u == 0 it shall return zero for every unsigned scale. For nonzero u, an excessive shift or a scaled result larger than Delta's maximum shall throw std::invalid_argument rather than wrap. The function shall not change the current counter or checking slot. Returning a zero delta shall not imply that an already reached watcher threshold is admissible under 🔗 4. Threshold conversion and already-reached rejection.
-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment PPL-LLR-000134 At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use PPL-LLR-000438 For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
from_delta(out, d) shall assign the unsigned modular sum of the current weight and the supplied delta to out. It shall admit out aliasing the delta object or the current counter and evaluate the sum from their values before assignment. It shall neither register an event nor invoke a notification. This arithmetic conversion shall not itself validate whether the result is future under 🔗 4. Strict circular ordering of computational weights; watcher construction shall perform that check under 🔗 4. Threshold conversion and already-reached rejection.
-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment PPL-LLR-000134 At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use PPL-LLR-000438 For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
Let N be the number of value bits in Threshold and let d be the unsigned modular difference of b and a, in [0, 2N). less_than(a, b) shall return true exactly when 0 < d < 2N − 1. Equal weights shall compare false; values separated by exactly a half-range shall not acquire an arbitrary orientation. An admitted queue/check history shall keep its current and pending thresholds within a common circular interval shorter than a half-range so that this comparison gives the coherent strict ordering required by 🔗 1. Generic threshold-watcher traits and admitted value protocol. The function shall not allocate, notify or change its operands/backend state.
-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment PPL-LLR-000134 At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use PPL-LLR-000438 For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
In the normal computational-weight configuration (PPL_PROFILE_ADD_WEIGHT == 0), WEIGHT_BEGIN() shall not change the counter. Outside the assertion suppression of 🔗 6. Assertion-scope instrumentation suppression, WEIGHT_ADD(d) shall add the value of its supplied expression and WEIGHT_ADD_MUL(d, f) shall add the product of the values of both supplied expressions. Each supplied expression shall be evaluated once; the caller shall supply arithmetic expressions with defined evaluation, conversion and multiplication. Accumulation shall retain unsigned modular arithmetic and shall not itself dispatch pending notifications. The same admitted expressions shall have the same mathematical effect in assertion and nonassertion builds.
An explicitly enabled release-build Weight_Profiler configuration shall follow 🔗 1. Optional profiler selection and instrumentation protocol through 🔗 4. Profiler reports, lifetime output and startup calibration.
-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment PPL-LLR-000134 At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use PPL-LLR-000438 For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
In builds without NDEBUG, In_Assert shall maintain a nesting count in the calling thread (or the sole configured global context). Its construction shall enter assertion evaluation and destruction shall leave it. asserting() shall be true exactly while that count is nonzero. Balanced nested scopes, including exception unwinding, shall restore the previous state. During such a scope, computational-weight increment macros shall neither increment the counter nor evaluate their increment expressions, and maybe_abandon() shall return without checking thresholds or caller-owned requests. Clients shall retain properly nested, noncopied guard lifetimes. In_Assert shall not be required to exist in builds with NDEBUG.
-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment PPL-LLR-000134 At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use PPL-LLR-000438 For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
Throwable shall provide a const virtual throw_me() action and virtual destruction. abandon_expensive_computations shall initially be null and shall retain a borrowed pointer to a caller-owned live Throwable. The client shall keep the request object alive through all admitted reads/actions, publish it under the configured synchronization and execution-context rules, and clear/replace the slot before ending that lifetime. The library shall not own/delete the object or clear a request after invoking it. In a thread-safe configuration the request slot shall be thread-local and atomic; the ordinary configuration shall use its declared volatile pointer protocol. Cross-thread publication shall target the intended live slot under the caller's synchronization; thread-local storage shall not turn a write to another thread's own slot into a request for the computing thread.
-
Incoming link from: 4. Binding interruption support and state changes1
4. Cooperative computation abandonment PPL-LLR-000134 At documented native abandonment checkpoints, the runtime shall check pending computational-weight thresholds and caller-owned abandonment requests. A pending caller-owned request shall invoke its supplied exception mechanism without clearing that request; the caller shall remain responsible for clearing it. Binding-owned timeout notification and cleanup shall follow the binding's declared interruption protocol. Cancellation latency shall depend on checkpoint placement and computation progress rather than a promised elapsed-time bound.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
-
Incoming links from: 4. Binding interruption support and state changes 1. Explicit C library lifecycle 2. Java library lifecycle 1. Initialization and finalization lifecycle 2. Floating-point rounding-state exchange 4. Cooperative computation abandonment 4. Cooperative computation abandonment 2. Java library initialization and finalization8
6. Thread entry and shared-facility use PPL-LLR-000438 For each supported thread configuration and language interface, the runtime shall provide the required library and thread initialization and finalization protocol. Correctly initialized threads shall use the thread-specific numerical state required by that configuration. Permitted concurrent use, object-sharing conditions and caller synchronization requirements for shared facilities shall be explicit, including restrictions on computational-weight monitoring and watchdog signal ownership.
-
8. Controlled runtime operation and resource use PPL-HLR-000008 PPL shall define its initialization, cleanup, runtime configuration and failure behavior, and shall provide the supported mechanisms for controlling long-running computations, so that clients can use the library without violating its documented object and resource-lifetime rules.
-
Outside 🔗 6. Assertion-scope instrumentation suppression, maybe_abandon() shall first invoke the nonnull computational-weight checking hook. If that action returns, it shall select the current registration-scoped request in a thread-safe build 🔗 5. Interruptible thread registration and request lifetime, if one is present, or read the current caller-owned abandonment slot. It shall invoke the selected nonnull object's const throw_me() action. The read shall observe admitted serial request changes made by the hook. A throwing hook shall propagate its exception and prevent the later action for that invocation. A throwing request action shall likewise propagate. Neither path shall clear a request, undo callback effects or take ownership of its object. A null hook/request shall be skipped. The checkpoint shall not promise a fixed elapsed-time interruption bound.