diff options
| author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-18 22:45:11 +0000 |
|---|---|---|
| committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-18 22:45:11 +0000 |
| commit | 935d29f73cc9abed70ef2dbc2ca423e032c2199f (patch) | |
| tree | fccd5f998e6e3120f21d52ebef6c43d08e6abdbe /spec/ruby/shared/basicobject | |
| parent | 5a9907dcad96c24ef6da9b4dfc693afdc4ae8e58 (diff) | |
file: File#truncate and File.truncate release GVL
Like IO#write and IO.open, these file operations have
unpredictable performance on slow file systems. Allow other
threads of the VM to proceed while they are taking place.
* file.c (nogvl_truncate): extract from rb_file_s_truncate
(rb_file_s_truncate): release GVL
(nogvl_ftruncate): extract from rb_file_truncate
(rb_file_truncate): release GVL
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/shared/basicobject')
0 files changed, 0 insertions, 0 deletions
