diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-05 04:25:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-05 04:25:10 +0000 |
commit | 99d65b14b4ec3a546a28b6b17b3b4553eaf27b2f (patch) | |
tree | 96eef7127faf2419d14216d506c98bae49fd45a5 /thread_win32.ci | |
parent | f3dfa40734581b03b1c2565ff1d0a6675c92a213 (diff) | |
download | ruby-99d65b14b4ec3a546a28b6b17b3b4553eaf27b2f.tar.gz |
* compile.c, dir.c, eval.c, eval_jump.h, eval_method.h, numeric.c,
pack.c, parse.y, re.c, thread.c, vm.c, vm_dump.c, call_cfunc.ci,
thread_pthread.ci, thread_win32.ci: fixed indentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.ci')
-rw-r--r-- | thread_win32.ci | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/thread_win32.ci b/thread_win32.ci index d046775302..d69cd98a01 100644 --- a/thread_win32.ci +++ b/thread_win32.ci @@ -196,22 +196,22 @@ native_mutex_lock(rb_thread_lock_t *lock) thread_debug("native_mutex_lock: %p\n", *lock); result = w32_wait_events(&*lock, 1, INFINITE, 0); switch (result) { - case WAIT_OBJECT_0: + case WAIT_OBJECT_0: /* get mutex object */ thread_debug("acquire mutex: %p\n", *lock); return 0; - case WAIT_OBJECT_0 + 1: + case WAIT_OBJECT_0 + 1: /* interrupt */ errno = EINTR; thread_debug("acquire mutex interrupted: %p\n", *lock); return 0; - case WAIT_TIMEOUT: + case WAIT_TIMEOUT: thread_debug("timeout mutex: %p\n", *lock); break; - case WAIT_ABANDONED: + case WAIT_ABANDONED: rb_bug("win32_mutex_lock: WAIT_ABANDONED"); break; - default: + default: rb_bug("win32_mutex_lock: unknown result (%d)", result); break; } @@ -244,9 +244,9 @@ native_mutex_trylock(rb_thread_lock_t *lock) result = w32_wait_events(&*lock, 1, 1, 0); thread_debug("native_mutex_trylock result: %d\n", result); switch (result) { - case WAIT_OBJECT_0: + case WAIT_OBJECT_0: return 0; - case WAIT_TIMEOUT: + case WAIT_TIMEOUT: return EBUSY; } return EINVAL; |