One user-space repair task per eligible HWE debug-diag / compile-deploy base ID: 320 admitted (C 218, C++ 97, build scripts 5), 1 skipped by the content filter. Each ships a public spec with a check-to-basis table, at least two defects with single-fix fixtures, a symptom-masking fixture and an alternative correct implementation. Claude re-checked all 320: structure, the HWE quality items and trace6 Docker calibration receipts against current digests (320/320 USABLE). Difficulty is unmeasured. Known follow-up: 212 tasks use 120 ad-hoc family names; the next batch maps them to the canonical list. The batch's 1,256-line progress log stays in its factory report and the 36-local branch batch15-hwe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
994 B
C
36 lines
994 B
C
#ifndef TELEMETRY_QUEUE_H
|
|
#define TELEMETRY_QUEUE_H
|
|
|
|
#include <stddef.h>
|
|
|
|
#define QUEUE_LIMIT 16
|
|
|
|
typedef struct {
|
|
unsigned id;
|
|
int value;
|
|
unsigned lane;
|
|
} queue_job;
|
|
|
|
typedef struct {
|
|
queue_job slots[QUEUE_LIMIT];
|
|
unsigned head;
|
|
unsigned count;
|
|
unsigned capacity;
|
|
} work_queue;
|
|
|
|
int queue_init(work_queue *queue, unsigned capacity);
|
|
int queue_valid(const work_queue *queue);
|
|
unsigned queue_count(const work_queue *queue);
|
|
unsigned queue_capacity(const work_queue *queue);
|
|
int queue_empty(const work_queue *queue);
|
|
int queue_full(const work_queue *queue);
|
|
int queue_contains(const work_queue *queue, unsigned id);
|
|
int queue_push(work_queue *queue, const queue_job *job);
|
|
int queue_front(const work_queue *queue, queue_job *job);
|
|
int queue_pop(work_queue *queue, queue_job *job);
|
|
int queue_at(const work_queue *queue, unsigned offset, queue_job *job);
|
|
int queue_remove(work_queue *queue, unsigned id, queue_job *job);
|
|
unsigned queue_clear(work_queue *queue);
|
|
|
|
#endif
|