Skip to content

更公平的互斥量调度 #28

Description

@RFoe

while(not try_lock())
while(_M_locked.load(std::memory_order_relaxed))
if(cnt -- <= 0) COASYNC_ATTRIBUTE((unlikely))
{
co_await detail::suspendible<detail::yield_service>()();
cnt = _S_count;

            co_await detail::suspendible<detail::yield_service>()();

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions