basho / leveldb

Clone of http://code.google.com/p/leveldb/
BSD 3-Clause "New" or "Revised" License
408 stars 182 forks source link

Replace QueueThread class with simple mutex #200

Closed matthewvon closed 8 years ago

matthewvon commented 8 years ago

The QueueThread class in util/hot_threads.cc exists to correct a potential race condition. This is a simpler fix to same race condition that utilizes an existing mutex. Details here:

https://github.com/basho/leveldb/wiki/mv-no-semaphore
paulplace commented 8 years ago

+1 175cb2f