diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-25 09:02:50 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-25 09:02:50 +0000 |
commit | 95abea43fe6538c5e1d179f9b296c76c97652c31 (patch) | |
tree | c06cdd994283fd65e1d9f1cdd4923b579d61279f /thread.c | |
parent | 0e063601a48d8806dc539c90a0fe2aeef771cffe (diff) |
hrtime.h: add documentation
I updated the patch with documentation but forgot about it,
earlier :x
[ruby-core:88616] [Misc #15014]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1155,6 +1155,11 @@ getclockofday(struct timespec *ts) rb_timespec_now(ts); } +/* + * Don't inline this, since library call is already time consuming + * and we don't want "struct timespec" on stack too long for GC + */ +NOINLINE(rb_hrtime_t rb_hrtime_now(void)); rb_hrtime_t rb_hrtime_now(void) { |