TaskScheduler icon indicating copy to clipboard operation
TaskScheduler copied to clipboard

hasNewTasksEvent signal results in infinite look on Apple Silicon

Open BeastLe9enD opened this issue 4 years ago • 5 comments

Hey, I noticed that the example project does not work on Apple Silicon. It causes an infinite loop in MTScheduler.cpp line 719 (the context.hasNewTasksEvent.Signal(); takes infinite time).

The Run(MT::FiberContext& context) function is empty so it should finish immediately.

Im using the latest version from Github. MacOS version: 11.2.2

BeastLe9enD avatar Mar 23 '21 22:03 BeastLe9enD

gogo fix, i need for Metal Raytracing Game Engine

DaeBasduhr avatar Mar 29 '21 14:03 DaeBasduhr

it's a shame that there was absolutely no response. I assume that means the library is no longer being developed. Still, it would have been decent to at least communicate that clearly. I can recommend Marl from Google to anyone who will be reading this, it's a very good library.

DaeBasduhr avatar Oct 12 '22 20:10 DaeBasduhr

@DaeBasduhr It seems like he is not very active on github at the moment, If you really want to fix it you can fork it and fix it yourself.

BeastLe9enD avatar Oct 18 '22 15:10 BeastLe9enD

Sorry guys, but due to a few recent GitHub "email storms", most of the emails from GitHub end up in the spam folder.

I plan to retrofit TaskSceduler later this year. I'll be switching to CMake, adding support for M1/M2, and faster fibers. I don't have a specific timeline for this yet, as I'm busy with my main job. But I'm excited to make these updates and improve the project overall!

P.S. Pull Requests are welcome!

SergeyMakeev avatar Feb 16 '23 05:02 SergeyMakeev

@SergeyMakeev are u fine if I already port the scheduler to cmake?

BeastLe9enD avatar Sep 02 '23 13:09 BeastLe9enD