Re: Locking issue in message.c



On 2002.05.14 17:53 Emmanuel wrote:
> 	Hi all,
> There is a locking issue I don't quite understand in message.c : why 
> don't we lock the source and destination mailboxes when we copy 
> messages between 2 mailboxes (in libbalsa_message[s]_copy)? I can't 
> actually imagine a scenario where this could be harmful, but I think 
> we should lock them while we modify their contents.

The mailboxes should definetely be MT-locked when their contents is 
accessed/modified.

-pawel



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