Skip to content

更公平的互斥量调度 #28

@RFoe

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>()();

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