mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
This reverts some of commit 87fb44dff6
.
We will rename and propose a slightly different interface.
This commit is contained in:
parent
74834fd7b1
commit
3b9896acfc
Notes:
git
2024-11-06 09:19:59 +00:00
Merged-By: ioquatix <samuel@codeotaku.com>
6 changed files with 0 additions and 106 deletions
12
thread.c
12
thread.c
|
@ -1523,18 +1523,6 @@ rb_nogvl(void *(*func)(void *), void *data1,
|
|||
rb_unblock_function_t *ubf, void *data2,
|
||||
int flags)
|
||||
{
|
||||
VALUE scheduler = rb_fiber_scheduler_current();
|
||||
if (scheduler != Qnil) {
|
||||
struct rb_fiber_scheduler_blocking_region_state state;
|
||||
|
||||
VALUE result = rb_fiber_scheduler_blocking_region(scheduler, func, data1, ubf, data2, flags, &state);
|
||||
|
||||
if (!UNDEF_P(result)) {
|
||||
rb_errno_set(state.saved_errno);
|
||||
return state.result;
|
||||
}
|
||||
}
|
||||
|
||||
void *val = 0;
|
||||
rb_execution_context_t *ec = GET_EC();
|
||||
rb_thread_t *th = rb_ec_thread_ptr(ec);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue