-
Notifications
You must be signed in to change notification settings - Fork 75
Proposed changes to threading option #170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Would this require a What about detecting the compiler/platform and including the appropriate features that way and keeping the option named the same? That way the user doesn't have to care about which platform they are on for the option, if its enabled it'll include as much as possible that that platform supports. Might be good to document what features each platform would include in the readme |
Instead, I was thinking of making the
I agree that we should automatically exclude features that aren't supported on the OS used to build the library. But I also think that most of the libcoro features should be included by default; after all, as a library, developers can simply link against what they want; there's little penalty for including more. In addition, a large amount of Here's a concrete proposal for making most of the Files that are currently in
|
I think this makes a lot of sense now that you broken it down, I like it a lot. I will note thought that the original ask behind I think what really should happen is abstracting out the linux parts behind an interface that any platform could then implement properly. This is probably a step in that direction? So I think its a good thing. |
Fantastic!
That makes sense -- offer a flavor of the library that's platform agnostic, so it runs on embedded platforms or any OS. I'd suggest this part of the code. Given that, why place it behind a flag at all? I'd instead suggest enabling that part of the code for all builds.
That makes sense! I use the Qt library; perhaps we could borrow a bit of inspiration from their approach, since they've created nice abstractions around a lot of OS-specific stuff. |
Since I'm working on getting libcoro ported to other compilers/platforms, would you be open to a redefinition of the
LIBCORO_FEATURE_THREADING
option inCMakeLists.txt
? Current, the docstring there is "Include multithreading features." Could we make this "Include platform-specific multithreading features", and include all features that are platform-independent for all platforms? Almost all of the current threading features will work on Windows (and probably all platforms).The text was updated successfully, but these errors were encountered: