Author: mladen.turk(a)jboss.com
Date: 2007-10-04 02:24:12 -0400 (Thu, 04 Oct 2007)
New Revision: 1085
Modified:
trunk/sight/native/share/no.c
Log:
Make sure interrupt is always set for clear and free calls
Modified: trunk/sight/native/share/no.c
===================================================================
--- trunk/sight/native/share/no.c 2007-10-04 06:21:54 UTC (rev 1084)
+++ trunk/sight/native/share/no.c 2007-10-04 06:24:12 UTC (rev 1085)
@@ -211,6 +211,7 @@
if (!no)
return;
SIGHT_GLOBAL_TRY {
+ apr_atomic_inc32(&no->interrupted);
if (no->object) {
object = (*_E)->NewLocalRef(_E, no->object);
(*_E)->DeleteWeakGlobalRef(_E, no->object);
@@ -259,10 +260,10 @@
if (!no)
return;
SIGHT_GLOBAL_TRY {
+ apr_atomic_inc32(&no->interrupted);
#if SIGHT_APR_REFCOUNT
refcount = apr_atomic_read32(&no->refcount);
while (refcount) {
- apr_atomic_inc32(&no->interrupted);
apr_thread_yield();
refcount = apr_atomic_read32(&no->refcount);
}
Show replies by date