sighandle.c (25839) | sighandle.c (66525) |
---|---|
1/* sighandle.c -- Library routines for manipulating chains of signal handlers 2 Copyright (C) 1992 Free Software Foundation, Inc. 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2, or (at your option) 7 any later version. 8 --- 370 unchanged lines hidden (view full) --- 379#endif 380#endif 381 } 382 SIG_crSectNest++; 383 } 384} 385 386/* | 1/* sighandle.c -- Library routines for manipulating chains of signal handlers 2 Copyright (C) 1992 Free Software Foundation, Inc. 3 4 This program is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 2, or (at your option) 7 any later version. 8 --- 370 unchanged lines hidden (view full) --- 379#endif 380#endif 381 } 382 SIG_crSectNest++; 383 } 384} 385 386/* |
387 * Return nonzero if currently in a critical section. 388 * Otherwise return zero. 389 */ 390 391int SIG_inCrSect() 392{ 393 return SIG_crSectNest > 0; 394} 395 396/* |
|
387 * The following ends a critical section. 388 */ 389 390void SIG_endCrSect() 391{ 392 if (SIG_init() == 0) 393 { 394 SIG_crSectNest--; --- 14 unchanged lines hidden --- | 397 * The following ends a critical section. 398 */ 399 400void SIG_endCrSect() 401{ 402 if (SIG_init() == 0) 403 { 404 SIG_crSectNest--; --- 14 unchanged lines hidden --- |