diff options
author | Julien Boeuf <jboeuf@google.com> | 2015-02-03 15:04:45 -0800 |
---|---|---|
committer | Julien Boeuf <jboeuf@google.com> | 2015-02-03 15:04:45 -0800 |
commit | 4a0a394758d4f169173c221fe58284fee65970e4 (patch) | |
tree | 799be2ace8f0e57b3c111c6bc3bb3bf7b31402c7 /src/core/support/thd_win32.c | |
parent | 0825f70ca44730cb4b37042ffaa8cae5fd8c6f04 (diff) |
Fixing tsan errors in OpenSSL (#319)
- Added cross-platform implementation of gpr_thd_currentid();
- OpenSSL still shows some TSAN errors on OPENSSL_cleanse which is
inherently not thread-safe but this should not matter:
see
http://stackoverflow.com/questions/26433772/why-does-openssl-cleanse-look-so-complex-and-thread-unsafe
Diffstat (limited to 'src/core/support/thd_win32.c')
-rw-r--r-- | src/core/support/thd_win32.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/support/thd_win32.c b/src/core/support/thd_win32.c index 1762f87f3c..9378f91d21 100644 --- a/src/core/support/thd_win32.c +++ b/src/core/support/thd_win32.c @@ -77,4 +77,8 @@ gpr_thd_options gpr_thd_options_default(void) { return options; } +gpr_thd_id gpr_thd_currentid(void) { + return (gpr_thd_id)GetCurrentThreadId(); +} + #endif /* GPR_WIN32 */ |