octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

thread model for mxe-octave build


From: John W. Eaton
Subject: thread model for mxe-octave build
Date: Thu, 22 Feb 2018 11:43:43 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

I had someone ask why C++11 threads (mutext, condition_variable_any) wasn't working with .oct files built with Octave 4.2.1. After a little searching, I found that we are configuring GCC with --enable-threads=win32 instead of --enable-threads=posix. Apparently the latter is required to enable C++11 thread features. Is there any reason to not use --enable-threads=posix by default in our builds? I tried building native-gcc with this option and it allowed my test program to compile but I don't know whether there might be other problems. From what I hve read, it seems that even if GCC is built with this option you can still use Windows threading features directly. I've seen some mention of performance issues "in some situations" but no explanation of what that might be.

jwe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]