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.
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.
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.
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