mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-30 13:19:44 +02:00
chore: trim redundant comments
This commit is contained in:
1 parent
fb2dda1ed1
commit
49869792cf
13 files changed
+30
-96
No files matched your search
@@ -119,11 +119,9 @@ func (ext *loadedExtension) lockReadyVM() (*goja.Runtime, error) {
|
||||
|
||||
type extensionManager struct {
|
||||
mu sync.RWMutex
|
||||
// mutationMu serializes heavy mutating operations (install / upgrade /
|
||||
// remove). These tear down and re-extract files and rebuild goja VMs;
|
||||
// running two at once (e.g. updating two extensions simultaneously) races
|
||||
// the non-thread-safe goja runtime and can hard-crash the process. Always
|
||||
// acquired before m.mu; internal "*Locked" helpers assume it is held.
|
||||
// mutationMu serializes install/upgrade/remove (heavy FS + goja VM
|
||||
// teardown/reload), which are not safe to run concurrently. Acquired before
|
||||
// m.mu; "*Locked" helpers assume it is held.
|
||||
mutationMu sync.Mutex
|
||||
extensions map[string]*loadedExtension
|
||||
extensionsDir string
|
||||
|
||||
Reference in new issue
Block a user