Topic: set_new_handler
Author: Jonathan de Boyne Pollard <J.deBoynePollard@tesco.net>
Date: 2000/05/11 Raw View
Biju Thomas <b.thomas@attglobal.net> wrote:
> Jonathan de Boyne Pollard wrote:
> > Gil Shafriri <gilsh@microsoft.com> wrote:
> > > Does calling set_new_handler affects the whole process [or] just
> > > the calling thread ?
> >
> > The answer to the question is, to quote Ambassador Kosh, "yes".
>
> Since C++ standard doesn't say anything about threads, wouldn't it
> be better to consult the implementation documents?
Only if one was seeking the answer to some other question. The answer to the
above question is "yes".
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: James Kuyper <kuyper@wizard.net>
Date: 2000/05/11 Raw View
Jonathan de Boyne Pollard wrote:
>
> Biju Thomas <b.thomas@attglobal.net> wrote:
> > Jonathan de Boyne Pollard wrote:
> > > Gil Shafriri <gilsh@microsoft.com> wrote:
> > > > Does calling set_new_handler affects the whole process [or] just
> > > > the calling thread ?
> > >
> > > The answer to the question is, to quote Ambassador Kosh, "yes".
> >
> > Since C++ standard doesn't say anything about threads, wouldn't it
> > be better to consult the implementation documents?
>
> Only if one was seeking the answer to some other question. The answer to the
> above question is "yes".
The answer is "yes" only when asked in general; the answer for specific
implementations can be different, and looking at the implementation's
documentation is the appropriate way to find out what that answer is.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Christopher Eltschka <celtschk@physik.tu-muenchen.de>
Date: 2000/05/12 Raw View
James Kuyper wrote:
>
> Jonathan de Boyne Pollard wrote:
> >
> > Biju Thomas <b.thomas@attglobal.net> wrote:
> > > Jonathan de Boyne Pollard wrote:
> > > > Gil Shafriri <gilsh@microsoft.com> wrote:
> > > > > Does calling set_new_handler affects the whole process [or] just
> > > > > the calling thread ?
> > > >
> > > > The answer to the question is, to quote Ambassador Kosh, "yes".
> > >
> > > Since C++ standard doesn't say anything about threads, wouldn't it
> > > be better to consult the implementation documents?
> >
> > Only if one was seeking the answer to some other question. The answer to the
> > above question is "yes".
>
> The answer is "yes" only when asked in general; the answer for specific
> implementations can be different, and looking at the implementation's
> documentation is the appropriate way to find out what that answer is.
You mean there are implementations where set_new_handler
neither affects the whole process nor just the current thread?
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: "John Hickin" <hickin@nortelnetworks.com>
Date: 2000/05/12 Raw View
Christopher Eltschka wrote:
>
>
> You mean there are implementations where set_new_handler
> neither affects the whole process nor just the current thread?
>
It would make sense to me, for example, if it worked like signal masks
in pthreads (new threads would inherit the new handler of the creating
thread). In this way, set_new_handler called in a thread could affect
the new handlers of other (as yet to be created) threads but not of the
whole process.
Regards, John.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: James Kuyper <kuyper@wizard.net>
Date: 2000/05/13 Raw View
Christopher Eltschka wrote:
>
> James Kuyper wrote:
> >
> > Jonathan de Boyne Pollard wrote:
> > >
> > > Biju Thomas <b.thomas@attglobal.net> wrote:
> > > > Jonathan de Boyne Pollard wrote:
> > > > > Gil Shafriri <gilsh@microsoft.com> wrote:
> > > > > > Does calling set_new_handler affects the whole process [or] just
> > > > > > the calling thread ?
> > > > >
> > > > > The answer to the question is, to quote Ambassador Kosh, "yes".
> > > >
> > > > Since C++ standard doesn't say anything about threads, wouldn't it
> > > > be better to consult the implementation documents?
> > >
> > > Only if one was seeking the answer to some other question. The answer to the
> > > above question is "yes".
> >
> > The answer is "yes" only when asked in general; the answer for specific
> > implementations can be different, and looking at the implementation's
> > documentation is the appropriate way to find out what that answer is.
>
> You mean there are implementations where set_new_handler
> neither affects the whole process nor just the current thread?
No. I mean what I said. There are some implementations where
set_new_handler consistently affects either the whole process, or just
the current thread, but not both. "Yes" is technically "an answer" to
the question, but for such implementations it is not, as Pollard
claimed, "the answer".
If, for a given implementation, set_new_handler() always affects the
whole process, then "the answer" is to say so, not to say "yes". Saying
"yes", while technically correct, is not very helpful. It incorrectly
implies that there's some uncertainty about the effects, and for that
particular implementation there is no such uncertainty. The best place
to find that answer is the implementation's documentation; you won't
find it in the standard.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Biju Thomas <b.thomas@attglobal.net>
Date: 2000/05/02 Raw View
Jonathan de Boyne Pollard wrote:
>
> Gil Shafriri <gilsh@microsoft.com> wrote:
> > Does calling set_new_handler affects the whole process [or] just
> > the calling thread ?
>
> The answer to the question is, to quote Ambassador Kosh, "yes".
>
Since C++ standard doesn't say anything about threads, wouldn't it be
better to consult the implementation documents?
--
Biju Thomas
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Jonathan de Boyne Pollard <J.deBoynePollard@tesco.net>
Date: 2000/04/29 Raw View
Gil Shafriri <gilsh@microsoft.com> wrote:
> Does calling set_new_handler affects the whole process [or] just
> the calling thread ?
The answer to the question is, to quote Ambassador Kosh, "yes".
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Steve Clamage <stephen.clamage@sun.com>
Date: 2000/04/16 Raw View
On Fri, 14 Apr 2000 05:32:15 CST, "Gil Shafriri" <gilsh@microsoft.com>
wrote:
>Does calling set_new_handler affects the whole process on just the calling
>thread ?
The C++ standard does not address threads at all, so the answer is up
to the implementation. You'll have to check the vendor's
documentation.
---
Steve Clamage, stephen.clamage@sun.com
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: Darin Adler <darin@bentspoon.com>
Date: 2000/04/16 Raw View
In article <38f5d4b2@news.microsoft.com>, "Gil Shafriri"
<gilsh@microsoft.com> wrote:
> Does calling set_new_handler affects the whole process on just the
> calling thread ?
The C++ standard does not mention threads at all. Any platform that has
threads must extend the standard to define how the library works with
threads. So this is a platform question, not a C++ standard question.
My guess is that most platforms would have set_new_handle affect the
entire process, just because they would not address the issue at all in
the library implementaitn.
-- Darin
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]
Author: "Gil Shafriri" <gilsh@microsoft.com>
Date: 2000/04/14 Raw View
Does calling set_new_handler affects the whole process on just the calling
thread ?
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]