Parma Polyhedra Library requirements
Internal watchdog event-action bindings
  • 3. Failure and resource safety PPL-LLR-000133

    When a supported recoverable failure is reported through a documented error channel, the library shall release temporary resources it owns and leave surviving objects and outputs in the states permitted by the operation's documented failure guarantee. Failure during construction shall release resources acquired for the object whose construction failed. These obligations shall apply whether failure is reported by an exception, error status or host-language error mechanism.

    • PPL-HLR-000008
      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.

  • PPL-LLR-000134
    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.

    • PPL-HLR-000008
      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.

  • 5. Watchdog scheduling and cancellation scope PPL-LLR-000135

    Where watchdog support is available, the runtime shall accept supported positive timer durations, schedule notifications, and allow cancellation of pending notifications under the documented timer, signal, and thread-ownership restrictions. Failed construction shall not leave a pending event or invalidate existing watchdogs. Unsupported watchdog facilities and invalid durations shall be reported through the documented failure mechanism. Watchdog use shall not imply a hard elapsed-time deadline or a guarantee beyond the documented timer-state failure behavior.

    • PPL-HLR-000008
      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.

  • 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.

    • PPL-HLR-000008
      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.

PPL-SPEC-000815
1. Polymorphic event-action interface and virtual destruction PPL-SPEC-000815

Handler shall be an abstract interface with const action dispatch and virtual destruction. Calling act() through a live base reference shall dispatch to the selected derived handler. Deleting an owned derived handler through a base pointer shall run its derived destruction and release its wrapper exactly once. A borrowed handler shall not become owned merely by being passed to a pending event.

Construction, dispatch and destruction shall require the selected external callback/flag objects and synchronization to remain valid. These wrappers shall not themselves require global PPL initialization or timer availability. A caller invoking actions in a signal handler or shared threshold-watcher context shall retain that surrounding interface's operation and thread/signal restrictions.

  • 3. Failure and resource safety PPL-LLR-000133

    When a supported recoverable failure is reported through a documented error channel, the library shall release temporary resources it owns and leave surviving objects and outputs in the states permitted by the operation's documented failure guarantee. Failure during construction shall release resources acquired for the object whose construction failed. These obligations shall apply whether failure is reported by an exception, error status or host-language error mechanism.

    • PPL-HLR-000008
      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.

  • PPL-LLR-000134
    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.

    • PPL-HLR-000008
      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.

  • 5. Watchdog scheduling and cancellation scope PPL-LLR-000135

    Where watchdog support is available, the runtime shall accept supported positive timer durations, schedule notifications, and allow cancellation of pending notifications under the documented timer, signal, and thread-ownership restrictions. Failed construction shall not leave a pending event or invalidate existing watchdogs. Unsupported watchdog facilities and invalid durations shall be reported through the documented failure mechanism. Watchdog use shall not imply a hard elapsed-time deadline or a guarantee beyond the documented timer-state failure behavior.

    • PPL-HLR-000008
      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.

  • 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.

    • PPL-HLR-000008
      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.

2. Flag-handler binding and binding-preserving copies PPL-SPEC-000816

Handler_Flag construction shall bind the supplied holder reference and flag object without invoking a priority query, installing the flag or taking ownership of either external object. Copy construction and rvalue construction shall preserve those same bindings; later actions shall observe the holder's current value rather than a pointer-value snapshot made during construction. Ordinary assignment of this reference-binding wrapper shall not be supported.

The holder shall be a live volatile pointer to const Flag_Base and Flag* shall convert to Flag_Base*. For a nonnull holder, the existing pointee shall belong to the compatible Flag object family, so the implementation's declared base-to-flag cast is well formed and valid. The flag/holder and any nonnull pointee shall outlive their actual access. Wrapper destruction shall not delete or alter them.

  • 3. Failure and resource safety PPL-LLR-000133

    When a supported recoverable failure is reported through a documented error channel, the library shall release temporary resources it owns and leave surviving objects and outputs in the states permitted by the operation's documented failure guarantee. Failure during construction shall release resources acquired for the object whose construction failed. These obligations shall apply whether failure is reported by an exception, error status or host-language error mechanism.

    • PPL-HLR-000008
      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.

  • PPL-LLR-000134
    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.

    • PPL-HLR-000008
      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.

  • 5. Watchdog scheduling and cancellation scope PPL-LLR-000135

    Where watchdog support is available, the runtime shall accept supported positive timer durations, schedule notifications, and allow cancellation of pending notifications under the documented timer, signal, and thread-ownership restrictions. Failed construction shall not leave a pending event or invalidate existing watchdogs. Unsupported watchdog facilities and invalid durations shall be reported through the documented failure mechanism. Watchdog use shall not imply a hard elapsed-time deadline or a guarantee beyond the documented timer-state failure behavior.

    • PPL-HLR-000008
      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.

  • 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.

    • PPL-HLR-000008
      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.

3. Strict-priority flag installation PPL-SPEC-000817

On act(), a null bound holder shall be set to the bound flag address without querying flag priorities. For a nonnull valid holder, the action shall install the bound flag exactly when the existing flag's observed priority is strictly lower than the bound flag's observed priority. Equal or higher existing priority shall preserve the existing pointer. Priority queries shall supply comparable values consistent with that call's decision; they shall not themselves rebind the holder. External priority changes between calls shall be observed by later actions.

The operation shall not own/delete flags or allocate a wrapper. If a priority query reports an exception, it shall propagate through ordinary C++ dispatch without an assignment by the handler to the holder; any side effects of the query itself shall remain its own contract.

  • 3. Failure and resource safety PPL-LLR-000133

    When a supported recoverable failure is reported through a documented error channel, the library shall release temporary resources it owns and leave surviving objects and outputs in the states permitted by the operation's documented failure guarantee. Failure during construction shall release resources acquired for the object whose construction failed. These obligations shall apply whether failure is reported by an exception, error status or host-language error mechanism.

    • PPL-HLR-000008
      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.

  • PPL-LLR-000134
    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.

    • PPL-HLR-000008
      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.

  • 5. Watchdog scheduling and cancellation scope PPL-LLR-000135

    Where watchdog support is available, the runtime shall accept supported positive timer durations, schedule notifications, and allow cancellation of pending notifications under the documented timer, signal, and thread-ownership restrictions. Failed construction shall not leave a pending event or invalidate existing watchdogs. Unsupported watchdog facilities and invalid durations shall be reported through the documented failure mechanism. Watchdog use shall not imply a hard elapsed-time deadline or a guarantee beyond the documented timer-state failure behavior.

    • PPL-HLR-000008
      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.

  • 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.

    • PPL-HLR-000008
      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.

4. Function-handler target binding and copies PPL-SPEC-000818

Handler_Function construction shall store the supplied function pointer without invoking it. Copy and rvalue construction shall retain the same target. Ordinary assignment shall not be supported. A null pointer may be stored and destroyed without invocation, but shall not be an admitted action target. The callable code shall remain valid at invocation. Construction/copy/destruction shall not call or own the function or allocate auxiliary callback state.

  • 3. Failure and resource safety PPL-LLR-000133

    When a supported recoverable failure is reported through a documented error channel, the library shall release temporary resources it owns and leave surviving objects and outputs in the states permitted by the operation's documented failure guarantee. Failure during construction shall release resources acquired for the object whose construction failed. These obligations shall apply whether failure is reported by an exception, error status or host-language error mechanism.

    • PPL-HLR-000008
      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.

  • PPL-LLR-000134
    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.

    • PPL-HLR-000008
      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.

  • 5. Watchdog scheduling and cancellation scope PPL-LLR-000135

    Where watchdog support is available, the runtime shall accept supported positive timer durations, schedule notifications, and allow cancellation of pending notifications under the documented timer, signal, and thread-ownership restrictions. Failed construction shall not leave a pending event or invalidate existing watchdogs. Unsupported watchdog facilities and invalid durations shall be reported through the documented failure mechanism. Watchdog use shall not imply a hard elapsed-time deadline or a guarantee beyond the documented timer-state failure behavior.

    • PPL-HLR-000008
      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.

  • 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.

    • PPL-HLR-000008
      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.

5. Function action dispatch and callback failure PPL-SPEC-000819

With a live nonnull target, Handler_Function::act() shall call the stored function exactly once per invocation and return normally exactly when that call returns normally. A callback exception shall propagate with its identity and previously performed callback effects; no rollback of arbitrary callback state shall be required. The wrapper shall remain bound to the same target and permit a later admitted call. No invocation shall silently replace the callback with another target or delete its external state.