Skip to content
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

Add ability to alter stack size of threads #36

Open
Tracked by #35
DeveloperPaul123 opened this issue Jun 1, 2023 · 0 comments
Open
Tracked by #35

Add ability to alter stack size of threads #36

DeveloperPaul123 opened this issue Jun 1, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@DeveloperPaul123
Copy link
Owner

DeveloperPaul123 commented Jun 1, 2023

If we're going to support multiple platforms, it would be good to ensure that we have the same behavior on all platforms as much as possible.

On macOS, the stack size of threads created that are not the main thread is much smaller. We can introduce an abstraction for threads across all platforms that would address this issue and provide a default stack size on all platforms.

Some useful links and references:

https://en.cppreference.com/w/cpp/thread/thread/native_handle
https://www.boost.org/doc/libs/1_82_0/doc/html/thread/thread_management.html
https://github.com/official-stockfish/Stockfish/blob/d99942f25449789de78c9d36e3dcb67d4eb04e98/src/thread_win32_osx.h#L30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant