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: Mon, 26 Apr 2004 17:35:28 -0400 (EDT)

On Mon, 26 Apr 2004, James Lee wrote:

> Both get_cache_data methods in cache_t.hpp call the mutex lock
> a second time without unlocking. The first lock is on entry and
> the second from copy. This happens when the lock of n is the
> same as that of cache. The mutex will not unlock as the thread
> locked it itself, hence the thread thread blocks on the second
> lock.

Could I have a test cast that will trigger the problem?  It may be 
necessary to use a recursive lock but that will be a pain.  Especially 
since I will have to implement one myself since the pthread library does 
not guarantee the availability of one.

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





reply via email to

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