RE: Custom defined object in a signal handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sreevathsa wrote:

> I am working on a multithreaded application in which, in one of the code
> paths, multiple threads need to setup a SIGALRM signal (to achieve TCP
> retrasmission kind of functionality). When each thread does this, it also
> need to pass the address of the structure that it operated upon, so that
> when the signal is delivered, the signal handling thread will know the
> address of the strucutre and can act upon it.

Signal handlers are per-process, not per-thread; only the mask is
per-thread. Likewise for timers.

-- 
Glynn Clements <glynn@xxxxxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux