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

Using std::thread to implement Thread. #70

Open
nicber opened this issue Aug 22, 2017 · 5 comments
Open

Using std::thread to implement Thread. #70

nicber opened this issue Aug 22, 2017 · 5 comments

Comments

@nicber
Copy link

nicber commented Aug 22, 2017

Hi

I'm trying to port rct to MSVC and one the many changes I need to make is porting Thread to Windows.

I have thought about replacing it's current implementation with a thin wrapper around std::thread. And using native_handle to implement support for priorities.

Would it be ok to do this? Is there any particular reason why Thread is implemented the way it is?

@Andersbakken
Copy link
Owner

Andersbakken commented Aug 22, 2017 via email

@nicber
Copy link
Author

nicber commented Aug 22, 2017

I think it is not possible to change the stack size before thread creation using the std::thread API.
I have seen that feature is used in rtags in only one place.
Do you think it is really necessary to run rtags on Windows?

@Andersbakken
Copy link
Owner

Andersbakken commented Aug 23, 2017 via email

@Andersbakken
Copy link
Owner

Andersbakken commented Aug 23, 2017 via email

@Gei0r
Copy link
Contributor

Gei0r commented Aug 24, 2017

nicber, it would probably be best if you base your work on my win branch, so we don't duplicate work.

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

No branches or pull requests

3 participants