From: Adam Dickmeiss Date: Tue, 13 Oct 1998 16:00:17 +0000 (+0000) Subject: Implemented nmem_critical_{enter,leave}. X-Git-Tag: YAZ.1.8~446 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=853b3f256a6753ea6dc26f6123a4956740ed82b4 Implemented nmem_critical_{enter,leave}. --- diff --git a/include/nmem.h b/include/nmem.h index 6ae6ee4..09b1149 100644 --- a/include/nmem.h +++ b/include/nmem.h @@ -24,7 +24,10 @@ * OF THIS SOFTWARE. * * $Log: nmem.h,v $ - * Revision 1.8 1998-07-20 12:35:59 adam + * Revision 1.9 1998-10-13 16:00:17 adam + * Implemented nmem_critical_{enter,leave}. + * + * Revision 1.8 1998/07/20 12:35:59 adam * Added more memory diagnostics (when NMEM_DEBUG is 1). * * Revision 1.7 1997/10/31 12:20:08 adam @@ -69,6 +72,9 @@ YAZ_EXPORT void nmem_reset(NMEM n); YAZ_EXPORT int nmem_total(NMEM n); YAZ_EXPORT char *nmem_strdup (NMEM mem, const char *src); +YAZ_EXPORT void nmem_critical_enter (void); +YAZ_EXPORT void nmem_critical_leave (void); + #if NMEM_DEBUG YAZ_EXPORT NMEM nmem_create_f(const char *file, int line); diff --git a/util/nmem.c b/util/nmem.c index 4f45847..72fc0a8 100644 --- a/util/nmem.c +++ b/util/nmem.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: nmem.c,v $ - * Revision 1.11 1998-08-21 14:13:36 adam + * Revision 1.12 1998-10-13 16:00:18 adam + * Implemented nmem_critical_{enter,leave}. + * + * Revision 1.11 1998/08/21 14:13:36 adam * Added GNU Configure script to build Makefiles. * * Revision 1.10 1998/07/20 12:35:57 adam @@ -234,6 +237,16 @@ void nmem_destroy(NMEM n) #endif } +void nmem_critical_enter (void) +{ + NMEM_ENTER; +} + +void nmem_critical_leave (void) +{ + NMEM_LEAVE; +} + void nmem_init (void) { #ifdef WINDOWS