2011/1/31 K. Frank <email@example.com>
> LLVM/Clang front...
On Mon, Jan 31, 2011 at 9:54 AM, Ruben Van Boxem
> Hi guys,
> I would like to let you in on some of the good stuff happening on the
> And the projects libc++ needs some love as well (I'm mostly looking atYes, the Vista+ std::thread stuff was me.
> the xlocale.h issue and perhaps threading, because I thought someone
> here had an implementation of std::thread using Windows Vista+
Let me give a brief summary so you can decide if what I have
done is relevant:
I added gthr support (in essence, but not precisely, by adding
to gthr-win32.h) for the std::thread (header file thread, etc.) that
ships with gcc. I assume that this is considered part of libstdc++,
although I am not really sure of the terminology or the official
structure of gcc.
As I understand it, libc++ is being developed as a replacement
for libstdc++. (Please correct me if I'm wrong.) So the more
similar libc++'s implementation of std::thread is to that of libstdc++,
the easier it would be to adapt my libstdc++ implementation to
(For example, the gthr "interface" is very pthreads-like. So if
the ("unix" version of) libc++'s std::thread is implemented in
terms of a pthreads-like lower-level interface, then reusing my
stuff might not be too hard.)
The current std::thread implementation is purely pthreads-based (libc++ was written with Mac OS X in mind).
Whether in the existing libstdc++ or the new libc++, I would be
happy to see my std::thread support incorporated into a windows
version (e.g., mingw32 / mingw-w64) version of gcc.
Me too, and I'm liking Clang and the idea of a new fresh C++0x designed libc++ for some reason :)
I'll see what I can do to integrate your code into Clang (with author==you of course ;-) ). Where can I find your code (I seem to have misplaced the email describing the location of your code :). Is it OK if I submit your code to the LLVM project (MIT license)?
@Kai: I believe you were working on winpthreads. Would it be OK to integrate this into libc++ or should this be part of the mingw runtime regardless and be used/linked like that?