Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

9
Is there an at all fair futures-aware mutex?
Post Body

The one in futures-util is apparently not fair at all.

I've observed this: I have a simulator loop in a blocking task that takes a lock each iteration, and other tasks that try to come in and do their thing in between those locks will wait an arbitrary amount of time on the order of many seconds, even though the lock is released many times per second.

Is there some sort of wrapper for parking_lot? Since I already have that in my dependency tree. There's future-parking_lot, but that hasn't been touched in eight months and depends on an old Tokio (I don't even use Tokio).

Author
Account Strength
100%
Account Age
13 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,214
Link Karma
323
Comment Karma
4,871
Profile updated: 5 days ago
Posts updated: 3 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago