signals and pthread (again)
- From: Capstar <news@xxxxxxxxxxxxx>
- Date: Tue, 29 Aug 2006 14:42:10 +0200
Hi NG,
First of all I want to apologize for reposting, but my original message didn't show up in google groups, so I figured it didn't get much further than my ISP.
Recently I've been experimenting with libposix_aio to do asynchronous IO. I've used a 2.6 kernel patch to be able to get a signal on IO completion. I first block the signal and then wait for it using sigwaitinfo. I don't have much experience with signals, so I'm not sure if I'm allowed to use any signal in the aiocb structure, but I use RTMIN.
If I do all this in a single thread it works fine. The thing is that I want to be able to create a few threads using pthread_create that will all wait using sigwaitinfo.
Because I wasn't sure if the signal would be sent to all threads or just one (as I want) I wrote a test program to see which thread got the signal. To my surprise none of the threads got a signal.
As I said before I'm not to experienced with signals, so I hope somebody can help me with this issue, or point me to a site that explains the posix signals.
Thanks,
Mark
.
- Prev by Date: Re: communication problem
- Next by Date: block size more than 4096 in ext2/3
- Previous by thread: communication problem
- Next by thread: block size more than 4096 in ext2/3
- Index(es):
Relevant Pages
|