[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch: Thread safe obstack
From: |
Bruno Haible |
Subject: |
Re: Patch: Thread safe obstack |
Date: |
Sun, 26 Aug 2007 12:18:51 +0200 |
User-agent: |
KMail/1.5.4 |
Herbert Euler wrote:
> But I can only call longjmp with a global jmp_buf, since
> this function is called with no arguments.
Here is a 4th way to solve this: Write an obstack_alloc_failed_handler
that throws a C++ exception, and have a catcher for this exception installed
in each thread.
Bruno