lardon3d/src/task_queue_internal.h
fy59 b84f860d86 refactor(core): freeze global maintenance baseline
Complete the A-to-Z Lardon3D maintenance and coherence pass.

Generalize host resource policy, remove the global CPU12 ceiling, preserve
host CPU/RAM reserves, scale Task capabilities through the Resource Governor,
and validate deterministic parallel GV execution.

Migrate Project DB to v23 with data-driven camera, lens, optical configuration
and calibration profiles, including manual lenses without EXIF.

Integrate safe optional LARDON SSD swap/scratch control with Governor and F10
drain/safe-to-unplug semantics.

Refactor the ncurses TUI into a runtime observatory with durable progress,
elapsed time, smoothed ETA, throughput, resource telemetry, Governor state,
optics workflow, colors and compact/no-color fallbacks.

Reconcile Queue lifetime, persistence, concurrency, comments, tests,
README, AGENTS and canonical documentation.

GLOBAL_MAINTENANCE_AUDIT=PASS/FROZEN
2026-09-01 08:00:47 +02:00

35 lines
1.1 KiB
C

#ifndef LARDON3D_TASK_QUEUE_INTERNAL_H
#define LARDON3D_TASK_QUEUE_INTERNAL_H
#include <lardon3d/task_queue.h>
#if defined(LARDON3D_TASK_QUEUE_TESTING)
/* TEST CONTRACT: these events expose exact Queue lifetime linearization points
* only to test-task-queue and test-resource-external-storage. Production must
* not declare, reference or call this seam. Both test binaries provide one
* strong callback definition; task_queue.c keeps a weak reference so the seam
* cannot become a required library/public ABI symbol. */
typedef enum {
LARDON3D_TASK_QUEUE_TEST_CALL_REGISTERED = 1,
LARDON3D_TASK_QUEUE_TEST_PRODUCER_WAITING = 2,
LARDON3D_TASK_QUEUE_TEST_CLOSING = 3,
} Lardon3DTaskQueueTestEvent;
#if defined(LARDON3D_TASK_QUEUE_TEST_WEAK_REFERENCE) \
&& (defined(__GNUC__) || defined(__clang__))
#define LARDON3D_TASK_QUEUE_TEST_ATTRIBUTE __attribute__((weak))
#else
#define LARDON3D_TASK_QUEUE_TEST_ATTRIBUTE
#endif
void lardon3d_task_queue_internal_test_event(
Lardon3DTaskQueue *queue,
Lardon3DTaskQueueTestEvent event
) LARDON3D_TASK_QUEUE_TEST_ATTRIBUTE;
#undef LARDON3D_TASK_QUEUE_TEST_ATTRIBUTE
#endif
#endif