summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-09 14:31:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-09 14:31:34 +0000
commited37579c6aa8eaa1edf62ac84269055edfc0139b (patch)
treedb97ac69c83418835ce5934494be2880444e7b47
parentb60fbca806816958c65353ca4a663c408c9425e3 (diff)
thread_*.c: constify
* thread_{pthread,win32}.c (native_cond_timedwait): constify. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--thread_pthread.c2
-rw-r--r--thread_win32.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 581dfecaaa..c0411318a1 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -338,7 +338,7 @@ native_cond_wait(rb_nativethread_cond_t *cond, pthread_mutex_t *mutex)
}
static int
-native_cond_timedwait(rb_nativethread_cond_t *cond, pthread_mutex_t *mutex, struct timespec *ts)
+native_cond_timedwait(rb_nativethread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *ts)
{
int r;
diff --git a/thread_win32.c b/thread_win32.c
index 7eb640aa6c..db00a736f6 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -479,7 +479,7 @@ native_cond_wait(rb_nativethread_cond_t *cond, rb_nativethread_lock_t *mutex)
}
static unsigned long
-abs_timespec_to_timeout_ms(struct timespec *ts)
+abs_timespec_to_timeout_ms(const struct timespec *ts)
{
struct timeval tv;
struct timeval now;
@@ -495,7 +495,7 @@ abs_timespec_to_timeout_ms(struct timespec *ts)
}
static int
-native_cond_timedwait(rb_nativethread_cond_t *cond, rb_nativethread_lock_t *mutex, struct timespec *ts)
+native_cond_timedwait(rb_nativethread_cond_t *cond, rb_nativethread_lock_t *mutex, const struct timespec *ts)
{
unsigned long timeout_ms;