rocksdb/port/win
Dmitri Smirnov fe608e32ab Fix a race condition in WindowsThread (port::Thread)
Summary:
Fix a race condition when we create a thread and immediately destroy
 This case should be supported.
  What happens is that the thread function needs the Data instance
  to actually run but has no shared ownership and must rely on the
  WindowsThread instance to continue existing.
  To address this we change unique_ptr to shared_ptr and then
  acquire an additional refcount for the threadproc which destroys it
  just before the thread exit.
  We choose to allocate shared_ptr instance on the heap as this allows
  the original thread to continue w/o waiting for the new thread to start
  running.
Closes https://github.com/facebook/rocksdb/pull/3240

Differential Revision: D6511324

Pulled By: yiwu-arbug

fbshipit-source-id: 4633ff7996daf4d287a9fe34f60c1dd28cf4ff36
2017-12-07 13:42:53 -08:00
..
env_default.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
env_win.cc Make writable_file_max_buffer_size dynamic 2017-10-31 13:56:35 -07:00
env_win.h Change RocksDB License 2017-07-15 16:11:23 -07:00
io_win.cc Fix unused var warnings in Release mode 2017-10-23 14:27:04 -07:00
io_win.h Change RocksDB License 2017-07-15 16:11:23 -07:00
port_win.cc Enable cacheline_aligned_alloc() to allocate from jemalloc if enabled. 2017-10-27 13:27:12 -07:00
port_win.h Enable cacheline_aligned_alloc() to allocate from jemalloc if enabled. 2017-10-27 13:27:12 -07:00
win_jemalloc.cc Enable cacheline_aligned_alloc() to allocate from jemalloc if enabled. 2017-10-27 13:27:12 -07:00
win_logger.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
win_logger.h Change RocksDB License 2017-07-15 16:11:23 -07:00
win_thread.cc Fix a race condition in WindowsThread (port::Thread) 2017-12-07 13:42:53 -08:00
win_thread.h Fix a race condition in WindowsThread (port::Thread) 2017-12-07 13:42:53 -08:00
xpress_win.cc Enable cacheline_aligned_alloc() to allocate from jemalloc if enabled. 2017-10-27 13:27:12 -07:00
xpress_win.h Change RocksDB License 2017-07-15 16:11:23 -07:00