engine icon indicating copy to clipboard operation
engine copied to clipboard

Optimization Idea: Skipping synchronization if thread not changed.

Open Dandielo opened this issue 2 years ago • 0 comments

Sometimes we might have a situation where the Awaitable responsible to move a task to a different execution thread is already in the "ready" state, skipping all the necessary work. It would be great to notify functions like wait_for that there never was a thread change and the synchronization can be minimalized. (For example, not invoking the futex call on Unix / Android systems)

Dandielo avatar Sep 14 '23 06:09 Dandielo