]> granicus.if.org Git - php/commitdiff
unposixfy calls to TSRM
authorSascha Schumann <sas@php.net>
Fri, 26 Nov 1999 19:27:08 +0000 (19:27 +0000)
committerSascha Schumann <sas@php.net>
Fri, 26 Nov 1999 19:27:08 +0000 (19:27 +0000)
main/reentrancy.c

index 2fc32f6e46829b4801c0191ec3e37ffce96076db..2d10618c4c8b92736812e7ae981964e58734ac27 100644 (file)
@@ -124,7 +124,7 @@ void reentrancy_startup(void)
        int i;
 
        for (i = 0; i < NUMBER_OF_LOCKS; i++) {
-               tsrm_mutex_init(reentrant_locks[i]);
+               reentrant_locks[i] = tsrm_mutex_alloc();
        }
 }
 
@@ -133,7 +133,7 @@ void reentrancy_shutdown(void)
        int i;
 
        for (i = 0; i < NUMBER_OF_LOCKS; i++) {
-               tsrm_mutex_destroy(reentrant_locks[i]);
+               tsrm_mutex_free(reentrant_locks[i]);
        }
 }