]> git.ipfire.org Git - thirdparty/zstd.git/commit
[zstd] Remove global variables in dictBuilder
authorNick Terrell <terrelln@meta.com>
Tue, 4 Mar 2025 20:54:49 +0000 (15:54 -0500)
committerNick Terrell <nickrterrell@gmail.com>
Wed, 5 Mar 2025 15:35:01 +0000 (10:35 -0500)
commit190a6209749a9461d11a2fd52cbe547d5c087f4a
treef441a354042a3fa7196189c27cd36ea51e4c2266
parentd5b84f5a27956284d1c07bbb75672c8c224518df
[zstd] Remove global variables in dictBuilder

D50949782 fixed a race condition updating `g_displayLevel` by disabling display.
Instead of disabling display, delete the global variable and always "capture" a local `displayLevel` variable.
This also fixes `DISPLAYUPDATE()` by requiring the user to pass in the last update time as the first parameter.
lib/dictBuilder/cover.c
lib/dictBuilder/fastcover.c