cvs: pecl /apc apc_cache.c apc_cache.h apc_main.c apc_sma.c

From: Date: Sat, 25 Feb 2006 09:02:56 +0000
Subject: cvs: pecl /apc apc_cache.c apc_cache.h apc_main.c apc_sma.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-5267@lists.php.net to get a copy of this message
rasmus Sat Feb 25 09:02:56 2006 UTC Modified files: /pecl/apc apc_cache.c apc_cache.h apc_main.c apc_sma.c Log: Safety net for locks - Since our signal handling is nonexistant, let's add lock cleanup safety net to take care of the rare cases where we get longjpm'ed out of a critical section. http://cvs.php.net/viewcvs.cgi/pecl/apc/apc_cache.c?r1=3.103&r2=3.104&diff_format=u Index: pecl/apc/apc_cache.c diff -u pecl/apc/apc_cache.c:3.103 pecl/apc/apc_cache.c:3.104 --- pecl/apc/apc_cache.c:3.103 Thu Feb 16 23:31:43 2006 +++ pecl/apc/apc_cache.c Sat Feb 25 09:02:56 2006 @@ -28,7 +28,7 @@ */ -/* $Id: apc_cache.c,v 3.103 2006/02/16 23:31:43 iliaa Exp $ */ +/* $Id: apc_cache.c,v 3.104 2006/02/25 09:02:56 rasmus Exp $ */ #include "apc_cache.h" #include "apc_lock.h" @@ -927,6 +927,13 @@ } /* }}} */ +/* {{{ apc_cache_unlock */ +void apc_cache_unlock(apc_cache_t* cache) +{ + UNLOCK(cache); +} +/* }}} */ + /* * Local variables: * tab-width: 4 http://cvs.php.net/viewcvs.cgi/pecl/apc/apc_cache.h?r1=3.31&r2=3.32&diff_format=u Index: pecl/apc/apc_cache.h diff -u pecl/apc/apc_cache.h:3.31 pecl/apc/apc_cache.h:3.32 --- pecl/apc/apc_cache.h:3.31 Thu Jan 5 22:22:18 2006 +++ pecl/apc/apc_cache.h Sat Feb 25 09:02:56 2006 @@ -26,7 +26,7 @@ */ -/* $Id: apc_cache.h,v 3.31 2006/01/05 22:22:18 helly Exp $ */ +/* $Id: apc_cache.h,v 3.32 2006/02/25 09:02:56 rasmus Exp $ */ #ifndef APC_CACHE_H #define APC_CACHE_H @@ -268,6 +268,7 @@ extern apc_cache_info_t* apc_cache_info(T cache); extern void apc_cache_free_info(apc_cache_info_t* info); extern void apc_cache_expunge(apc_cache_t* cache, time_t t); +extern void apc_cache_unlock(apc_cache_t* cache); #undef T #endif http://cvs.php.net/viewcvs.cgi/pecl/apc/apc_main.c?r1=3.67&r2=3.68&diff_format=u Index: pecl/apc/apc_main.c diff -u pecl/apc/apc_main.c:3.67 pecl/apc/apc_main.c:3.68 --- pecl/apc/apc_main.c:3.67 Thu Feb 23 18:26:01 2006 +++ pecl/apc/apc_main.c Sat Feb 25 09:02:56 2006 @@ -28,7 +28,7 @@ */ -/* $Id: apc_main.c,v 3.67 2006/02/23 18:26:01 sebastian Exp $ */ +/* $Id: apc_main.c,v 3.68 2006/02/25 09:02:56 rasmus Exp $ */ #include "apc_php.h" #include "apc_main.h" @@ -406,6 +406,9 @@ (apc_cache_entry_t*) apc_stack_pop(APCG(cache_stack)); apc_cache_release(apc_cache, cache_entry); } + /* Safety net */ + apc_sma_unlock(); + apc_cache_unlock(apc_cache); } /* }}} */ http://cvs.php.net/viewcvs.cgi/pecl/apc/apc_sma.c?r1=1.35&r2=1.36&diff_format=u Index: pecl/apc/apc_sma.c diff -u pecl/apc/apc_sma.c:1.35 pecl/apc/apc_sma.c:1.36 --- pecl/apc/apc_sma.c:1.35 Sat Feb 25 08:14:34 2006 +++ pecl/apc/apc_sma.c Sat Feb 25 09:02:56 2006 @@ -26,7 +26,7 @@ */ -/* $Id: apc_sma.c,v 1.35 2006/02/25 08:14:34 rasmus Exp $ */ +/* $Id: apc_sma.c,v 1.36 2006/02/25 09:02:56 rasmus Exp $ */ #include "apc_sma.h" #include "apc.h" @@ -491,6 +491,13 @@ } /* }}} */ +/* {{{ apc_sma_unlock */ +void apc_sma_unlock() +{ + UNLOCK(sma_lock); +} +/* }}} */ + #if 0 /* {{{ apc_sma_check_integrity */ void apc_sma_check_integrity()

« previous php.pecl.cvs (#5267) next »