forked from armink/FlashDB
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 修改fix lock issue to fix block on first run (armink#295)的实现
虽然#295的实现可以解决首次调用fdb_kvdb_init死锁的问题,但先unlock再lock没有必要,原因如下:因为fdb_kvdb_init中加锁,其调用的_fdb_kv_load中的fdb_kv_set_default中又加锁,如果不用嵌套互斥锁会发生死锁,而fdb_kv_set_default函数只在_fdb_kv_load中调用,因此将其加减锁代码删除即可
- Loading branch information
wangtao
committed
May 20, 2024
1 parent
60675db
commit 725b23a
Showing
1 changed file
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters