aspell-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [aspell-devel] 0.60 hangs at pthread_mutex_lock


From: Kevin Atkinson
Subject: Re: [aspell-devel] 0.60 hangs at pthread_mutex_lock
Date: Wed, 28 Apr 2004 15:51:39 -0400 (EDT)

On Wed, 28 Apr 2004, Kevin Atkinson wrote:

> 
> OK.  Here is a fix.  I simply avoid calling copy and increment the 
> refcount directly.

Forgot to add ';' after n->refcount++. Sorry.  Here is an updated patch:

diff -u -r1.10 cache-t.hpp
--- common/cache-t.hpp  28 Feb 2004 22:21:06 -0000      1.10
+++ common/cache-t.hpp  28 Apr 2004 19:51:43 -0000
@@ -58,7 +58,7 @@
   Data * n = cache->find(key);
   //CERR << "Getting " << key << "\n";
   if (n) {
-    n->copy();
+    n->refcount++;
     return n;
   }
   PosibErr<Data *> res = Data::get_new(key, config);
@@ -82,7 +82,7 @@
   Data * n = cache->find(key);
   //CERR << "Getting " << key << "\n";
   if (n) {
-    n->copy();
+    n->refcount++;
     return n;
   }
   PosibErr<Data *> res = Data::get_new(key, config, config2);

-- 
http://kevin.atkinson.dhs.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]