Mercurial > ecos-v3_0-branch
comparison packages/compat/posix/current/src/signal.cxx @ 2856:86466766a501
* src/signal.cxx (pause): Revert change of 2006-07-18 pending updating of the
signal1, signal3 and timer1 tests. [ Bugzilla 1000689, 1000690 ]
| author | jld |
|---|---|
| date | Wed, 25 Mar 2009 08:06:23 +0000 |
| parents | 74dbf4c3f2e1 |
| children |
comparison
equal
deleted
inserted
replaced
| 2855:22f1625c71e0 | 2856:86466766a501 |
|---|---|
| 6 // | 6 // |
| 7 //========================================================================== | 7 //========================================================================== |
| 8 // ####ECOSGPLCOPYRIGHTBEGIN#### | 8 // ####ECOSGPLCOPYRIGHTBEGIN#### |
| 9 // ------------------------------------------- | 9 // ------------------------------------------- |
| 10 // This file is part of eCos, the Embedded Configurable Operating System. | 10 // This file is part of eCos, the Embedded Configurable Operating System. |
| 11 // Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc. | 11 // Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2009 Free Software Foundation, Inc. |
| 12 // | 12 // |
| 13 // eCos is free software; you can redistribute it and/or modify it under | 13 // eCos is free software; you can redistribute it and/or modify it under |
| 14 // the terms of the GNU General Public License as published by the Free | 14 // the terms of the GNU General Public License as published by the Free |
| 15 // Software Foundation; either version 2 or (at your option) any later | 15 // Software Foundation; either version 2 or (at your option) any later |
| 16 // version. | 16 // version. |
| 1064 | 1064 |
| 1065 signal_mutex.lock(); | 1065 signal_mutex.lock(); |
| 1066 | 1066 |
| 1067 // Check for any pending signals that can be delivered and | 1067 // Check for any pending signals that can be delivered and |
| 1068 // if there are none, wait for a signal to be generated | 1068 // if there are none, wait for a signal to be generated |
| 1069 while( !cyg_deliver_signals() ) | 1069 if( !cyg_deliver_signals() ) |
| 1070 signal_sigwait.wait(); | 1070 signal_sigwait.wait(); |
| 1071 | 1071 |
| 1072 // Now check again for some signals to deliver | |
| 1073 cyg_deliver_signals(); | |
| 1074 | |
| 1072 signal_mutex.unlock(); | 1075 signal_mutex.unlock(); |
| 1073 | 1076 |
| 1074 SIGNAL_RETURN(EINTR); | 1077 SIGNAL_RETURN(EINTR); |
| 1075 } | 1078 } |
| 1076 | 1079 |
