This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

more detailed io state; new_handler and thread safety


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]