4.115
Last change
on this file since be1b8a7 was
0c5317d,
checked in by Sebastian Huber <sebastian.huber@…>, on 07/19/13 at 12:33:56
|
posix: Create pthread implementation header
Move implementation specific parts of pthread.h and pthread.inl into new
header file pthreadimpl.h. The pthread.h contains now only the
application visible API.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief POSIX_signals clear_process_signals |
---|
5 | * @ingroup POSIXAPI |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * COPYRIGHT (c) 1989-2007. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.com/license/LICENSE. |
---|
15 | */ |
---|
16 | |
---|
17 | #if HAVE_CONFIG_H |
---|
18 | #include "config.h" |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <errno.h> |
---|
22 | #include <pthread.h> |
---|
23 | #include <signal.h> |
---|
24 | |
---|
25 | #include <rtems/system.h> |
---|
26 | #include <rtems/score/isr.h> |
---|
27 | #include <rtems/score/thread.h> |
---|
28 | #include <rtems/score/tqdata.h> |
---|
29 | #include <rtems/score/wkspace.h> |
---|
30 | #include <rtems/seterr.h> |
---|
31 | #include <rtems/posix/threadsup.h> |
---|
32 | #include <rtems/posix/psignalimpl.h> |
---|
33 | #include <rtems/posix/pthreadimpl.h> |
---|
34 | #include <rtems/posix/time.h> |
---|
35 | #include <stdio.h> |
---|
36 | |
---|
37 | /* |
---|
38 | * _POSIX_signals_Clear_process_signals |
---|
39 | */ |
---|
40 | |
---|
41 | void _POSIX_signals_Clear_process_signals( |
---|
42 | int signo |
---|
43 | ) |
---|
44 | { |
---|
45 | sigset_t mask; |
---|
46 | bool clear_signal; |
---|
47 | |
---|
48 | clear_signal = true; |
---|
49 | mask = signo_to_mask( signo ); |
---|
50 | |
---|
51 | ISR_Level level; |
---|
52 | |
---|
53 | _ISR_Disable( level ); |
---|
54 | if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { |
---|
55 | if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) |
---|
56 | clear_signal = false; |
---|
57 | } |
---|
58 | if ( clear_signal ) { |
---|
59 | _POSIX_signals_Pending &= ~mask; |
---|
60 | } |
---|
61 | _ISR_Enable( level ); |
---|
62 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.