]> granicus.if.org Git - graphviz/commitdiff
remove POOLMTXLOCK() no-op
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 17 Oct 2020 20:15:38 +0000 (13:15 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Oct 2020 02:16:10 +0000 (19:16 -0700)
lib/sfio/sfclose.c
lib/sfio/sfhdr.h

index d83c38cfa14bf1a396257ddc988f0308e68dd2fc..7ab80d5ccaa0ae0ebf7bcafa0757caf8a99825f8 100644 (file)
@@ -65,7 +65,6 @@ int sfclose(Sfio_t * f)
        if (f->pool == &_Sfpool) {
            int n;
 
-           POOLMTXLOCK(&_Sfpool);
            for (n = 0; n < _Sfpool.n_sf; ++n) {
                if (_Sfpool.sf[n] != f)
                    continue;
index 83bcca2c4e1169b96379ebcd2a10dc853d8fc658..0cfc3628f3aa8206d2c3c62455215ae5dd94a69f 100644 (file)
@@ -88,7 +88,6 @@ extern "C" {
 #define SFMTXSTART(f,v)                { if(!f) return(v); }
 #define SFMTXRETURN(f,v)       { return(v); }
 
-#define POOLMTXLOCK(p)
 #define POOLMTXUNLOCK(p)
 #define POOLMTXSTART(p)
 #define POOLMTXRETURN(p,v)     { return(v); }