This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
more detailed io state; new_handler and thread safety
- From: Matthias Weiss <matthias dot weiss at inode dot at>
- To: libstdc++ at gcc dot gnu dot org
- Date: Thu, 4 Apr 2002 00:17:15 +0200
- Subject: more detailed io state; new_handler and thread safety
- Reply-to: matthias dot weiss at inode dot at
Hi everyone,
I got stuck with two problems and hope that
some one could give me pointer to the right direction.
1.) How can I determine what caused a stream to get
the ios_base::failbit or ios_base::badbit?
E.g. how can I find out if opening a file failed due
to permission problems?
2.) I found no clear statement in my literature about
the thread safety of std::set_new_handler but I suspect
it is not thread safe. What is an approved way of having
several threads with each having their own new_handler
function set?
thanx for any help
matthias