microsoft / arcana.cpp

Arcana.cpp is a collection of helpers and utility code for low overhead, cross platform C++ implementation of task-based asynchrony.
MIT License
78 stars 24 forks source link

Unix support #15

Closed CedricGuillemet closed 4 years ago

CedricGuillemet commented 4 years ago

Unix support for task scheduler

ryantrem commented 4 years ago

@syntheticmagus - it would be nice if we could have something like a PlatformDefault directory alongside Android, iOS, etc., and use files from that directory when we don't have platform specific implementations. Is this possible/easy with cmakelists.txt?

bghgary commented 4 years ago

@ryantrem CMakeLists.txt can certainly do this, but I don't know if it makes sense here. The current stop gap solution for threadpool_scheduler is a placeholder and I'm sure it should be used as the official fallback behavior.

ryantrem commented 4 years ago

@bghgary yea that's true, though I don't think the idea of having special platform specific implementations is abnormal. We can wait until we have a more "real" case of that though, it just seems like a hassle to have to do these kinds of updates when trying to use Arcana on a new platform.

bghgary commented 4 years ago

I don't know. My opinion is that if we have platform specific code, we would rather know about what platforms are missing.

bghgary commented 4 years ago

I've updated the title in #8 to reflect the new platform.