Switch to sync.RWMutex globally #30
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: tslocum/cview#30
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
I've noticed pretty much of all of the library functions use a
sync.Mutex
to ensure safe concurrency, which is great. But I was thinking that usingsync.RWMutex
would be better in all cases, since the mutex is invoked even when simply getting/reading a variable. Usingsync.RWMutex
and changing relevant lines toRLock
andRUnlock
would make the code more efficient.Thanks!