A few remarks about locking



	Hi all,
It's written in a comment before the function 
libbalsa_mailbox_load_messages(LibBalsaMailbox * mailbox) (in 
libbalsa/mailbox.c) that it must be called with the gdk lock held. But I 
think it's false. In fact I even try it without the gdk lock and it works 
perfectly. I think that it is because we don't use any UI function (we 
only emit signals and process the libmutt headers).
But what seems strange to me is that in this function we process libmutt 
datas without holding the mutt lock, is this correct (think of another 
thread calling libmutt to change the same mailbox --> big mess).
And you what do you think ? ;-)
Bye
Manu



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