google/leveldb

Make background thread stoppable

开放

#863 创建于 2020年12月18日

 (2 条评论) (0 个反应) (0 位负责人)C++ (8,199 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (39,075 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Hi,

Current version of LevelDB has detached background thread that can't be stopped and each environment calls std::abort() in destructor. This behavior prevents using of LevelDB in plugin dlls that can be started and stopped when main application still runs.

I think it is better to allow background thread to finish tasks in queue and then exit, when environment is being destroyed. That will make database loadable and unloadable.

贡献者指南