diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-29 12:12:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-29 12:12:52 +0000 |
commit | 5f131b648dfb8b5817ca4c9ad02e9e89da3055f5 (patch) | |
tree | 1cc311e036f45e0e88c16c7a11195b4e9abc86ed | |
parent | b4c5fad4b1b435f081dd552ad29040a9edb1457f (diff) |
* thread_win32.c, include/ruby/win32.h: add prototypes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | include/ruby/win32.h | 1 | ||||
-rw-r--r-- | thread_win32.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h index 99a2d2b1d4..f24ba98b5f 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -701,6 +701,7 @@ int rb_w32_uutime(const char *, const struct utimbuf *); long rb_w32_write_console(uintptr_t, int); /* use uintptr_t instead of VALUE because it's not defined yet here */ int WINAPI rb_w32_Sleep(unsigned long msec); int rb_w32_wait_events_blocking(HANDLE *events, int num, DWORD timeout); +int rb_w32_time_subtract(struct timeval *rest, const struct timeval *wait); /* == ***CAUTION*** diff --git a/thread_win32.c b/thread_win32.c index 6d1ba32357..e29c6aff8e 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -21,6 +21,10 @@ static volatile DWORD ruby_native_thread_key = TLS_OUT_OF_INDEXES; +static int w32_wait_events(HANDLE *events, int count, DWORD timeout, rb_thread_t *th); +static int native_mutex_lock(rb_thread_lock_t *lock); +static int native_mutex_unlock(rb_thread_lock_t *lock); + static void w32_error(const char *func) { |