From the 101 lk/man/pth code-gen sources: 63 tasks (C11 36, C++17 27, 11 canonical families), 38 skipped for scope or duplication. Each task has at least one independent contract-edge defect, boundary types rotate, and public docs state trap clauses as plain contract prose. Claude reviewed 63/63 USABLE against current digests. Difficulty is unmeasured. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
389 B
C++
29 lines
389 B
C++
#include "blink.hpp"
|
|
|
|
namespace blink {
|
|
void Session::clear_current()
|
|
{
|
|
phase_ = 0;
|
|
config_ = Config{};
|
|
pulses_ = 0;
|
|
}
|
|
|
|
void Session::unwind()
|
|
{
|
|
phase_ = 3;
|
|
timer_.cancel();
|
|
gpio_.release();
|
|
timer_.finish();
|
|
clear_current();
|
|
}
|
|
|
|
void Session::retire()
|
|
{
|
|
phase_ = 3;
|
|
timer_.cancel();
|
|
timer_.finish();
|
|
gpio_.release();
|
|
clear_current();
|
|
}
|
|
}
|