apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: Problems with DSOs and Pools
Date Tue, 19 Sep 2006 21:12:28 GMT
On Tue, 2006-09-19 at 10:39 -0400, Garrett Rooney wrote:

> I would avoid locking when pool isn't NULL,

Not exactly sure what you mean. The patch does this in all places where
mutex is supposed to get locked:

---------------------------------------
+#if APR_HAS_THREADS
+    if (!pool) {
+        apr_thread_mutex_lock(dso_global_mutex);
+    }
+#endif /* APR_HAS_THREADS */
---------------------------------------

So, when pool isn't NULL, there is no locking. Or were you referring to
something else?

-- 
Bojan


Mime
View raw message