-
Notifications
You must be signed in to change notification settings - Fork 184
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
Windows: use native thread API instead of pthread #403
Comments
We have our own wrapper for c++ threads API here https://github.com/ultravideo/kvazaar/tree/master/src/threadwrapper that is used by the MSVC build, would using it also in mingw suffice? It should be fairly simple to enable on CMakeLists Lines 212 to 214 in 9eed4c3
and this Line 224 in 9eed4c3
should be included with MSYS/MINGW and these excluded Lines 243 to 245 in 9eed4c3
At least in theory it should work, though I haven't tested it. |
ok, you use the c++11 thread API. That means:
so the current implementation will work (i can see that libkvazaar-7.dll is linked against libwinpthread.dll with mingw). It's just that i would have prefered a native implementation with mingw. But it is some work |
Unfortunately I won't have time to work on this but if you want to do it I can accept a pull request. |
if i have time, i'll look at it |
On Windows, mingw project provides winpthread forPOSIX thread interface. But according to the devs:
would it be possible to have such implementation (supported versions of Windows : >= Vista, as for example, conditions are implemented since Vista) ?
thank you
The text was updated successfully, but these errors were encountered: