tarcieri/nio4r — pull request #11 by dbussink (2012-11-21 17:57:21+00:00)
Title: Additional thread safety fixes

The original fix was not complete, it only synchronized around closed?,
not around close itself. Pretty dumb, but this commit fixes it properly.

Ran it in a loop with Rubinius for quite a while and didn't see any
crashes anymore.