mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Stop using rb_str_locktmp_ensure publicly
rb_str_locktmp_ensure is a private API.
This commit is contained in:
parent
8a6740c70e
commit
ce8531fed4
@ -204,7 +204,8 @@ rsock_s_recvfrom(VALUE socket, int argc, VALUE *argv, enum sock_recv_type from)
|
||||
rb_io_wait(fptr->self, RB_INT2NUM(RUBY_IO_READABLE), Qnil);
|
||||
#endif
|
||||
|
||||
slen = (long)rb_str_locktmp_ensure(str, recvfrom_locktmp, (VALUE)&arg);
|
||||
rb_str_locktmp(str);
|
||||
slen = (long)rb_ensure(recvfrom_locktmp, (VALUE)&arg, rb_str_unlocktmp, str);
|
||||
|
||||
if (slen == 0 && !rsock_is_dgram(fptr)) {
|
||||
return Qnil;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user