On Wednesday, 26 February 2014 at 12:58:26 UTC, bearophile wrote:
If you have bug fixes, or improvements, it's better to do them
right there. Of if you don't want to register on that site, you
can put the modified version in dpaste, and I'll upload it on
Rosettacode.
Here are some improvements:
http://dpaste.dzfl.pl/6430488f3d07
The changes are minimal just to accomodate for simple
synchronization primitive. Full-blown Mutex version would be a
little more involved, and somewhat ugly, at least until the
upcoming migration of Mutex et al. to 'shared' takes place.