diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-08-06 10:13:20 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-08-06 10:13:20 +0900 |
commit | 58c8b6e86273ccb7a1b903d9ab35956b69b3b1bf (patch) | |
tree | 4528c4b2002b01bc01858783dd87a4fcab4e317d /thread_sync.c | |
parent | c433d36b5bd0b6a649a0c4112a9868bd5190cbc6 (diff) |
Adjust styles [ci skip]
Diffstat (limited to 'thread_sync.c')
-rw-r--r-- | thread_sync.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/thread_sync.c b/thread_sync.c index 0359ac2214..63db1c4392 100644 --- a/thread_sync.c +++ b/thread_sync.c @@ -624,7 +624,8 @@ rb_mutex_synchronize_m(VALUE self) return rb_mutex_synchronize(self, rb_yield, Qundef); } -void rb_mutex_allow_trap(VALUE self, int val) +void +rb_mutex_allow_trap(VALUE self, int val) { Check_TypedStruct(self, &mutex_data_type); @@ -714,7 +715,8 @@ queue_ptr(VALUE obj) #define QUEUE_CLOSED FL_USER5 static rb_hrtime_t -queue_timeout2hrtime(VALUE timeout) { +queue_timeout2hrtime(VALUE timeout) +{ if (NIL_P(timeout)) { return (rb_hrtime_t)0; } |