Skip to content

lock_caller may not return immediately #285

Open
@MoonStar2n

Description

lock is used very frequently in OPAL, and code should not block in OPAL.

lock

However, in the lock_caller function, if cpu not get lock, it will execute the following try to lock code which is in for loop until it get the lock. I think this design may consume too much time in some scenario, OPAL should return immediately whether or not the lock is acquired.
Looking forward for your answer, thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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