summaryrefslogtreecommitdiff
path: root/thread_pthread.ci
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-19 16:16:12 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-19 16:16:12 +0000
commitd429f631688f37d3e064267eead575ecb57c7b8b (patch)
tree4f3185cfc72994449eeb8d5c360a3dcd91f1d4b3 /thread_pthread.ci
parent128cc954d0e17e871c657f1eaaadb927bc92b507 (diff)
just a minor change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.ci')
-rw-r--r--thread_pthread.ci8
1 files changed, 4 insertions, 4 deletions
diff --git a/thread_pthread.ci b/thread_pthread.ci
index c259ba4493..a8ffcb0c78 100644
--- a/thread_pthread.ci
+++ b/thread_pthread.ci
@@ -226,7 +226,7 @@ native_thread_create(rb_thread_t *th)
int err = 0;
if (use_cached_thread(th)) {
- thread_debug("create (use cahced thread): %p\n", th);
+ thread_debug("create (use cached thread): %p\n", th);
}
else {
pthread_attr_t attr;
@@ -241,7 +241,7 @@ native_thread_create(rb_thread_t *th)
CHECK_ERR(pthread_attr_init(&attr));
#ifdef PTHREAD_STACK_MIN
- thread_debug("create - stack size: %ld\n", th, stack_size);
+ thread_debug("create - stack size: %u\n", stack_size);
CHECK_ERR(pthread_attr_setstacksize(&attr, stack_size));
#endif
@@ -337,7 +337,7 @@ native_sleep(rb_thread_t *th, struct timeval *tv)
th->status = THREAD_STOPPED;
pthread_cond_init(&th->native_thread_data.sleep_cond, 0);
- thread_debug("native_sleep %d\n", tv ? tv->tv_sec : -1);
+ thread_debug("native_sleep %ld\n", tv ? tv->tv_sec : -1);
GVL_UNLOCK_BEGIN();
{
pthread_mutex_lock(&th->interrupt_lock);
@@ -356,7 +356,7 @@ native_sleep(rb_thread_t *th, struct timeval *tv)
}
else {
int r;
- thread_debug("native_sleep: pthread_cond_timedwait start (%d, %d)\n",
+ thread_debug("native_sleep: pthread_cond_timedwait start (%d, %ld)\n",
ts.tv_sec, ts.tv_nsec);
r = pthread_cond_timedwait(&th->native_thread_data.sleep_cond,
&th->interrupt_lock, &ts);