News for hackers. Stuff that matters.
Re:A fun optimization trick from rsync by repsilat on Sunday October 28, 2018 @11:00PM (#18324733)
In C++ you could also make an object (per thread?) and use member vars instead of static vars.

Also, if you're going to use static vars in multithreaded contexts doing this, better to write

   thing = 5;
(via that macro magic) than `thing++`. Then at least nothing too bad should happen...

There are no comments on this comment yet.