Skip to content

variable "global users" needs a mutual lock? #5

@kingofmeazza

Description

@kingofmeazza

From my understanding, "check_auth" keeps fetching the variable "global users" in the flask main threads, while "load_users" modifies it in a separate thread.
Since "load_users" is not called very frequently, a mutual lock will have little effect on the peformance.
I have little experience on Python threading, and I'm sorry if I made a misunderstanding.

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