diff options
Diffstat (limited to 'contrib/cvs/lib/sighandle.c')
-rw-r--r-- | contrib/cvs/lib/sighandle.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/cvs/lib/sighandle.c b/contrib/cvs/lib/sighandle.c index b229ea603a0d..2d21df8de518 100644 --- a/contrib/cvs/lib/sighandle.c +++ b/contrib/cvs/lib/sighandle.c @@ -384,6 +384,16 @@ void SIG_beginCrSect() } /* + * Return nonzero if currently in a critical section. + * Otherwise return zero. + */ + +int SIG_inCrSect() +{ + return SIG_crSectNest > 0; +} + +/* * The following ends a critical section. */ |