Re: xquartz dereferencing a NULL pointer (patch 2)

2008-11-10 Thread Simon Thum
Matthieu Herrb wrote: Simon Thum wrote: Tiago Vignatti wrote: http://www.nongnu.org/avr-libc/user-manual/group__util__atomic.html Does we have this kind of thing in C libraries? It would be useful. If I got it right, that's posix + pthreads functionality specialized for an amtel platform.

Re: xquartz dereferencing a NULL pointer (patch 2)

2008-11-09 Thread Simon Thum
Tiago Vignatti wrote: http://www.nongnu.org/avr-libc/user-manual/group__util__atomic.html Does we have this kind of thing in C libraries? It would be useful. If I got it right, that's posix + pthreads functionality specialized for an amtel platform. So in general, yes.

Re: xquartz dereferencing a NULL pointer (patch 2)

2008-11-09 Thread Matthieu Herrb
Simon Thum wrote: Tiago Vignatti wrote: http://www.nongnu.org/avr-libc/user-manual/group__util__atomic.html Does we have this kind of thing in C libraries? It would be useful. If I got it right, that's posix + pthreads functionality specialized for an amtel platform. So in general, yes.

Re: xquartz dereferencing a NULL pointer (patch 2)

2008-11-07 Thread Glynn Clements
Simon Thum wrote: newtail = (oldtail + 1) % QUEUE_SIZE; miEventQueue.tail = newtail; becoming miEventQueue.tail++; miEventQueue.tail |= QUEUE_SIZE - 1; Er, shouldn't this be = ? I don't think a compiler should be doing this to a non-local store. It could probably be