Re: [Java-gnome-developer] updating GNomeAppBar.progressbar while running a long process.
Brought to you by:
afcowie
From: Joao V. <jvi...@ya...> - 2005-04-19 12:03:40
|
--- Ismael Juma <ml...@ju...> wrote: > The point is you don't know when the other thread will read the right > value. For all you know, the thread could read its 'local' copy several > times before it reads the updated one. Even though it might work fine in > a certain implementation, it is really undefined behaviour and > definitely not recommended. I understand that this is not > mission-critical as it is only a progress bar, but I don't think we > should recommend people to do that in a tutorial. All of this imho of > course. Well, putting it volatile won't do no harm, so i just updated it.... ;) Cheers, J.V. __________________________________________________ Converse com seus amigos em tempo real com o Yahoo! Messenger http://br.download.yahoo.com/messenger/ |