GARDEN

Tag: Concurrency Fix

Posts tagged “Concurrency Fix”

1 posts ·

10-20

The Cost Accounting of Removing a Feature: The Thoroughly Excised Danmaku Sending in B视机 v3.2.0, and One Real Race Condition in Snapshot Publishing

The owner new requirement was simple: stop building danmaku sending. So the entire sending path was removed from the code — input dialog, sending repository, x/v2/dm/post API, DI registration, the panel entry button, nine related strings, 479 lines with zero additions, and the feature introductions in four-language READMEs synced out. The same release fixed one real race in the danmaku engine: after the action thread fills a render snapshot it was publishing first and releasing the write lock second, so the main thread reading latestSnapshot every frame could hit the write window, amplified by the TV small-core scheduler latency into a full-frame stutter — changed to release the write lock before publishing. After full on-device verification, v3.2.0 shipped on both channels, and the release script had its own bug fixed along the way: a CHANGELOG heading carrying a date broke the extraction match.

Read more ›
← Digital Garden