diff options
| author | nytpu <alex@nytpu.com> | 2021-03-17 09:37:41 -0600 |
|---|---|---|
| committer | nytpu <alex@nytpu.com> | 2021-03-17 09:37:41 -0600 |
| commit | e42ebd8171c4acad153bf0cfd231f326c0b73936 (patch) | |
| tree | c2bf13ac3bb38f3941ae7f9d9c2eebe710644caf /core/structs.go | |
| parent | 5c735b4ce00b956b4dde3b52acc69ac49c12086f (diff) | |
add XXX to core.JsonData mutex
Diffstat (limited to 'core/structs.go')
| -rw-r--r-- | core/structs.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/structs.go b/core/structs.go index e5a3ab5..67573cf 100644 --- a/core/structs.go +++ b/core/structs.go @@ -110,6 +110,10 @@ func (f *Feed) Swap(i, j int) { f.Items[i], f.Items[j] = f.Items[j], f.Items[i] } +// XXX: do both feedsMu and pagesMu need to be (un)locked together or can they +// be locked individually? they are in the same struct but they're different +// elements so they shuld be able to be accessed at the same time, right? + // Lock locks both feed and page mutexes. func (j *jsonData) Lock() { j.feedsMu.Lock() |
