|
From: Xiaofan C. <xia...@gm...> - 2014-02-26 14:21:31
|
On Tue, Feb 18, 2014 at 9:23 AM, Xiaofan Chen <xia...@gm...> wrote: > On Mon, Feb 17, 2014 at 9:56 PM, Peter Stuge <pe...@st...> wrote: >> Xiaofan Chen wrote: >>> Is the threading model in libusb Windows backend the same >>> thing as the threading model in MinGW-w64? >> >> It's a good question. I think you have to check with the MinGW-w64 >> community if someone there knows what "Thread model: posix" actually means. >> >> libusb uses Win32 threads on Windows and POSIX threads on Cygwin. >> > > Okay, I have asked in the MinGW-w64 mailing list. Hopefully they > will give some insight. > http://article.gmane.org/gmane.comp.gnu.mingw.w64.general/9461 One of the better answer I got does not give me much confidence about the interchangeability of different DLLs produced by different MinGW-w64 tool chain. For MinGW.org, it is quite consistent in terms of threading model -- they use win32 threading model. "Exception handling indeed only matters for C++. As for threading model, it matters for C but only for C11. I don't think libusb is C11 nor does use threading. As such you shouldn't have any issue with that. In other words, you can take a toolchain with any feature set and it should work. That said, I wonder if using binaries built with a toolchain not using the posix threading model are incompatible with toolchains which use it." -- Xiaofan |