do not release GVL for non-blocking operations
commita90d0f97c9eb5d9683af09b60ef7af9e94a255c3
authorEric Wong <normalperson@yhbt.net>
Sat, 20 Feb 2010 22:40:16 +0000 (20 14:40 -0800)
committerEric Wong <normalperson@yhbt.net>
Sat, 20 Feb 2010 22:40:16 +0000 (20 14:40 -0800)
tree93bd7ae116933b150680f58ad9191b271b7e8e2f
parent67a59023164bc039129b34a742f06ba376687684
do not release GVL for non-blocking operations

There's no point in wasting cycles releasing and reacquiring
a lock when we know we won't block.  Since most non-blocking
users are expected to be single/few-threaded processes, this
will likely help them.
ext/posix_mq/posix_mq.c