diff options
author | Koichi Sasada <[email protected]> | 2020-10-19 16:47:32 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2020-10-20 01:05:06 +0900 |
commit | 319afed20fba8f9b44611d16e4930260f7b56b86 () | |
tree | 39d24da0464a39a2bfbc93f4ab5849945bc6f652 /thread_win32.h | |
parent | 3f97940252a37db6e601b4bb1aa1e87204f769df (diff) |
Use language TLS specifier if it is possible.
To access TLS, it is faster to use language TLS specifier instead of using pthread_get/setspecific functions. Original proposal is: Use native thread locals. #3665
Notes: Merged: https://.com/ruby/ruby/pull/3667
-rw-r--r-- | thread_win32.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -63,4 +63,8 @@ void rb_native_cond_timedwait(rb_nativethread_cond_t *cond, rb_nativethread_lock void rb_native_cond_initialize(rb_nativethread_cond_t *cond); void rb_native_cond_destroy(rb_nativethread_cond_t *cond); #endif /* RUBY_THREAD_WIN32_H */ |