barrier: add hand-written barrier implementation
authorBrian Norris <banorris@uci.edu>
Tue, 9 Oct 2012 18:15:36 +0000 (11:15 -0700)
committerBrian Norris <banorris@uci.edu>
Tue, 9 Oct 2012 18:15:36 +0000 (11:15 -0700)
commit1acf3219e49d5194740cc600a76e68962fbdce6f
tree193e96111acf3391d20eea84ee716244dc3d978f
parent6ab37c539ac3939d63027753d2b7fd324ffb9192
barrier: add hand-written barrier implementation

Grabbed from:
http://stackoverflow.com/questions/8115267/writing-a-spinning-thread-barrier-using-c11-atomics
barrier/barrier.h [new file with mode: 0644]