diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-01 00:17:11 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-01 00:17:11 +0000 |
commit | f5f6232399b1e4bf6b702b51bef4d9e36b42df1b (patch) | |
tree | 4dbd81e9b398953e0ec4ba5ea9f865bd99b61029 /basictest | |
parent | e63dd598a719a94dc1a0c8ec94c82130f3552a44 (diff) | |
download | ruby-f5f6232399b1e4bf6b702b51bef4d9e36b42df1b.tar.gz |
dir: Dir.mkdir and Dir.rmdir release GVL
This avoids blocking the entire VM when operating on slow or
unreliable filesystems. Instead, only the thread performing
the mkdir or rmdir operation is blocked and other threads
are free to proceed.
* dir.c (nogvl_mkdir): new function
(nogvl_rmdir): ditto
(dir_s_mkdir): release GVL
(dir_s_rmdir): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'basictest')
0 files changed, 0 insertions, 0 deletions