summaryrefslogtreecommitdiff
path: root/internal/scheduler.h
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-09-17 14:30:40 +0200
committerBenoit Daloze <eregontp@gmail.com>2020-09-17 14:30:40 +0200
commit738a089b3ac55e5bfb26f9121ee73ffcb8c4a36b (patch)
tree0fb3bb95dc74207648344e98600a43d3e67b98ae /internal/scheduler.h
parentc3acfcc78da84002b7dd5000bad21663f0773e2a (diff)
Rename scheduler.{mutex_lock,mutex_unlock} to {block,unblock}
* Move #kernel_sleep next to #block as it is similar
Diffstat (limited to 'internal/scheduler.h')
-rw-r--r--internal/scheduler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/scheduler.h b/internal/scheduler.h
index 44872e3b10c..54f59f1a952 100644
--- a/internal/scheduler.h
+++ b/internal/scheduler.h
@@ -17,8 +17,8 @@ VALUE rb_scheduler_timeout(struct timeval *timeout);
VALUE rb_scheduler_kernel_sleep(VALUE scheduler, VALUE duration);
VALUE rb_scheduler_kernel_sleepv(VALUE scheduler, int argc, VALUE * argv);
-VALUE rb_scheduler_mutex_lock(VALUE scheduler, VALUE mutex);
-VALUE rb_scheduler_mutex_unlock(VALUE scheduler, VALUE mutex, VALUE fiber);
+VALUE rb_scheduler_block(VALUE scheduler, VALUE blocker);
+VALUE rb_scheduler_unblock(VALUE scheduler, VALUE blocker, VALUE fiber);
VALUE rb_scheduler_io_wait(VALUE scheduler, VALUE io, VALUE events, VALUE timeout);
VALUE rb_scheduler_io_wait_readable(VALUE scheduler, VALUE io);