mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
b60fbca806
commit
ed37579c6a
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue