You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While reading the code I noticed that the sync.RWMutex is only used with RLock, I could not find a corresponding Lock call.
RWMutex is doing states: A RWMutex is a reader/writer mutual exclusion lock. The lock can be held by an arbitrary number of readers or a single writer.
The newEntry method is also not having a critical section, correct?
Am I missing something?
The text was updated successfully, but these errors were encountered:
Hi,
While reading the code I noticed that the sync.RWMutex is only used with RLock, I could not find a corresponding Lock call.
RWMutex is doing states:
A RWMutex is a reader/writer mutual exclusion lock. The lock can be held by an arbitrary number of readers or a single writer.
The newEntry method is also not having a critical section, correct?
Am I missing something?
The text was updated successfully, but these errors were encountered: