Re: [Vala] volatile variable

2014-06-17 Thread Jürg Billeter
On Tue, 2014-06-17 at 01:38 +0200, Maciej Piechotka wrote: On Mon, 2014-06-16 at 10:55 +0800, Nor Jaidi Tuah wrote: Summary: byte access (read/write) is atomic on MOST architectures. Dang! I thought ALL. I'm not sure but there is no guarantee that it is - you don't know it it will be,

Re: [Vala] volatile variable

2014-06-17 Thread Maciej Piechotka
On Tue, 2014-06-17 at 09:07 +0800, Nor Jaidi Tuah wrote: Thank you for all the feedback and discussion. I now realize that my app, which seems to work perfectly, is a time bomb that would blow my brain away because I'm using a pipeline where a finished job is indicated by setting a flag as

Re: [Vala] volatile variable

2014-06-17 Thread Maciej Piechotka
On Tue, 2014-06-17 at 08:20 +0200, Jürg Billeter wrote: On Tue, 2014-06-17 at 01:38 +0200, Maciej Piechotka wrote: On Mon, 2014-06-16 at 10:55 +0800, Nor Jaidi Tuah wrote: Summary: byte access (read/write) is atomic on MOST architectures. Dang! I thought ALL. I'm not sure but