summaryrefslogtreecommitdiff
path: root/thread_pthread.ci
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-08 00:23:14 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-08 00:23:14 +0000
commitc49418522dec35ce043e0a9736fae32217002384 (patch)
treeec395914e069f04d77a08f9af7fb8bbc229227e0 /thread_pthread.ci
parent835f040be29b1a32f93428a6a90de7978b7c2779 (diff)
* compile.c: iseq_compile -> rb_iseq_compile.
* iseq.c: ditto. * intern.h: provide function prototype of Init_jump. * eval_jump.h (Init_jump): declare function type. * thread.c: platform-dependent functions should be surrounded by #ifdef. * iseq.c (iseq_data_to_ary): remove unused variable. * compile.c (set_arguments): ditto. * thread.c (set_unblock_function): ditto. * thread_pthread.ci: reduce printf warning. * vm_dump.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.ci')
-rw-r--r--thread_pthread.ci6
1 files changed, 3 insertions, 3 deletions
diff --git a/thread_pthread.ci b/thread_pthread.ci
index 1b9d1b9c53..595bb8e8fb 100644
--- a/thread_pthread.ci
+++ b/thread_pthread.ci
@@ -236,7 +236,7 @@ native_thread_create(rb_thread_t *th)
CHECK_ERR(pthread_attr_init(&attr));
#ifdef PTHREAD_STACK_MIN
- thread_debug("create - stack size: %u\n", stack_size);
+ thread_debug("create - stack size: %lu\n", (unsigned long)stack_size);
CHECK_ERR(pthread_attr_setstacksize(&attr, stack_size));
#endif
@@ -353,8 +353,8 @@ native_sleep(rb_thread_t *th, struct timeval *tv)
}
else {
int r;
- thread_debug("native_sleep: pthread_cond_timedwait start (%d, %ld)\n",
- ts.tv_sec, ts.tv_nsec);
+ thread_debug("native_sleep: pthread_cond_timedwait start (%ld, %ld)\n",
+ (unsigned long)ts.tv_sec, ts.tv_nsec);
r = pthread_cond_timedwait(&th->native_thread_data.sleep_cond,
&th->interrupt_lock, &ts);
thread_debug("native_sleep: pthread_cond_timedwait end (%d)\n", r);