diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-06-12 08:34:02 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-06-12 08:34:02 -0700 |
commit | bfdb73e145e6ca3bedcd5ef93e0b5d0fe9498645 (patch) | |
tree | 8e865437b0e105732f8c717ceb14073321731d19 /nptl/sysdeps/pthread | |
parent | 1828530f09bcc321cfb84c27110bbce804605ec4 (diff) | |
download | glibc-bfdb73e145e6ca3bedcd5ef93e0b5d0fe9498645.tar.gz glibc-bfdb73e145e6ca3bedcd5ef93e0b5d0fe9498645.tar.xz glibc-bfdb73e145e6ca3bedcd5ef93e0b5d0fe9498645.zip |
Implement pthread_sigqueue.
The kernel from 2.3.31 on supports the rt_tgsigqueueinfo syscall. Use it to implement the non-standard extension which, like sigqueue, can pass additional data to the receiving thread.
Diffstat (limited to 'nptl/sysdeps/pthread')
-rw-r--r-- | nptl/sysdeps/pthread/bits/sigthread.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nptl/sysdeps/pthread/bits/sigthread.h b/nptl/sysdeps/pthread/bits/sigthread.h index 960bde18a9..9a524e57db 100644 --- a/nptl/sysdeps/pthread/bits/sigthread.h +++ b/nptl/sysdeps/pthread/bits/sigthread.h @@ -1,5 +1,5 @@ /* Signal handling function for threaded programs. - Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2002, 2009 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -35,4 +35,10 @@ extern int pthread_sigmask (int __how, /* Send signal SIGNO to the given thread. */ extern int pthread_kill (pthread_t __threadid, int __signo) __THROW; +#ifdef __USE_GNU +/* Queue signal and data to a thread. */ +extern int pthread_sigqueue (pthread_t __threadid, int __signo, + const union sigval __value) __THROW; +#endif + #endif /* bits/sigthread.h */ |