Skip to content

Is sync.RWMutex needed? #12

Description

@d1ss0nanz

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions