[c++0x] prototype <mutex> implementation
Benjamin Kosnik
bkoz@redhat.com
Wed Mar 19 04:32:00 GMT 2008
> Attached is an implementation of <mutex> based on pthreads.
Hmmm. I have been working on chapter 30 as well. Here's my current
status, before you get too far into it.
> How should we deal with this in the thread library?
> Should we #error out?
This is a really good question.
I think we have to decide what we want
mutex
thread
condition_variable
to mean on systems with --disable-threads, and do it consistently.
I think the choice is either
assume threads and error when not supported, or provide dummy versions
with
distinct linkage from "real" versions that are --enable-thread capable.
best,
-benjamin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.20080318-2
Type: application/octet-stream
Size: 86909 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20080319/7c23106d/attachment.obj>
More information about the Libstdc++
mailing list