Re: Locking again

On 2002.08.08 19:30 Emmanuel wrote:
> The second part seems OK but this : why do we unlock gdk ? This part 
> must be called from another thread (not the main one), i.e. a backend 
> thread that should not have the gdk lock. So IMHO we should not lock 
> gdk in the backend thread, only in the UI func (the idle handle); 
> moreover that way we would avoid the unlocking of libmutt that seems 
> rather risky.

We need to drop locks to avoid deadlocks when the main thread tries to 
lock. (I have some doubts now about the gdk lock).


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