+
Skip to content

[Bug] Resource competition caused by multithreading #58

Closed
@textGamex

Description

@textGamex

Hello,
When I write code, I found that KeyNotFoundException will be triggered from time to time under multithreding parsing.
After attempting to change the strings, ints, and metadata fields in StringResourceManager from System.Collections.Generic.Dictionary to System.Collections.Concurrent.ConcurrentDictionary (thread safe), the problem disappears.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载