Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #954

Re: Using sigsetjmp/siglongjmp from multithreaded application

From "Ersek, Laszlo" <lacos@caesar.elte.hu>
Newsgroups comp.programming.threads
Subject Re: Using sigsetjmp/siglongjmp from multithreaded application
Date 2012-07-21 04:05 +0200
Organization A noiseless patient Spider
Message-ID <alpine.DEB.2.00.1207210400410.1155@login01.caesar.elte.hu> (permalink)
References <be95cec9-1c3a-492a-a3bb-a58f409b648e@googlegroups.com> <alpine.DEB.2.00.1207210158050.1155@login01.caesar.elte.hu>

Show all headers | View raw


On Sat, 21 Jul 2012, Ersek, Laszlo wrote:

> On Fri, 20 Jul 2012, Michael Podolsky wrote:
>
>> to my disappointment I found that there is no straightforward solution to 
>> associate a sigjmp_buf buffer with a particular thread.
>
> I'm not sure if it's a good idea, but I can think of three hacks:

(Of course you could search a table with pthread_self() + pthread_equal() 
as well, but neither is required to be async signal safe... Then again, 
nor is siglongjmp().)

Laszlo

Back to comp.programming.threads | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Using sigsetjmp/siglongjmp from multithreaded application Michael Podolsky <michael.podolsky.69@gmail.com> - 2012-07-20 14:42 -0700
  Re: Using sigsetjmp/siglongjmp from multithreaded application "Ersek, Laszlo" <lacos@caesar.elte.hu> - 2012-07-21 03:32 +0200
    Re: Using sigsetjmp/siglongjmp from multithreaded application "Ersek, Laszlo" <lacos@caesar.elte.hu> - 2012-07-21 04:05 +0200
      Re: Using sigsetjmp/siglongjmp from multithreaded application Michael Podolsky <michael.podolsky.69@gmail.com> - 2012-07-24 10:22 -0700
        Re: Using sigsetjmp/siglongjmp from multithreaded application "Ersek, Laszlo" <lacos@caesar.elte.hu> - 2012-07-25 03:28 +0200
  Re: Using sigsetjmp/siglongjmp from multithreaded application Marcel Müller <news.5.maazl@spamgourmet.com> - 2012-07-21 09:10 +0200
    Re: Using sigsetjmp/siglongjmp from multithreaded application Michael Podolsky <michael.podolsky.69@gmail.com> - 2012-07-24 10:34 -0700
      Re: Using sigsetjmp/siglongjmp from multithreaded application Marcel Müller <news.5.maazl@spamgourmet.com> - 2012-07-24 22:58 +0200
        Re: Using sigsetjmp/siglongjmp from multithreaded application Drazen Kacar <dave@fly.srk.fer.hr> - 2012-07-24 21:23 +0000
        Re: Using sigsetjmp/siglongjmp from multithreaded application Michael Podolsky <michael.podolsky.69@gmail.com> - 2012-07-24 15:48 -0700

csiph-web