fix: make Init in libdecompressor thread safe (#724)

This commit is contained in:
Gautam Botrel
2025-02-24 09:16:59 -06:00
committed by GitHub
parent 43141fc13d
commit 41c85068d2

View File

@@ -25,7 +25,9 @@ var (
//
//export Init
func Init() {
lock.Lock()
dictStore = dictionary.NewStore()
lock.Unlock()
}
// LoadDictionaries loads a number of dictionaries into the decompressor