News for hackers. Stuff that matters.
Re:In the C++ bag of tricks: scoped locks by ambrop7 on Friday February 07, 2014 @04:12PM (#7198766)
I learned about the for loop hack from avr-libc[1][2]. It even does some preprocessor abuse to implement different kinds of atomic and non-atomic sections.

[1] http://www.nongnu.org/avr-libc/user-manual/group__util__atom...

[2] http://svn.savannah.nongnu.org/viewvc/trunk/avr-libc/include...

There are no comments on this comment yet.