Skip to content

Commit

Permalink
disable thread for leveldb
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Jul 21, 2023
1 parent 58c940b commit 11282ce
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion checksum
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
1af97e7578a6b23af1aff33269acf462 public/rime.data
c5623abdffe84cb43c4cfb105df1208b public/rime.js
3f6111f120b2f5207f2f33c83d2dade7 public/rime.wasm
3e81ab6c5bca5747ef648fc1e37be41b public/rime.wasm
12 changes: 12 additions & 0 deletions leveldb_patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/util/env_posix.cc b/util/env_posix.cc
index d84cd1e..773c8cd 100644
--- a/util/env_posix.cc
+++ b/util/env_posix.cc
@@ -781,6 +781,7 @@ PosixEnv::PosixEnv()
void PosixEnv::Schedule(
void (*background_work_function)(void* background_work_arg),
void* background_work_arg) {
+ return background_work_function(background_work_arg);
background_work_mutex_.Lock();

// Start the background thread, if we haven't done so already.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@libreservice/micro-plum": "^0.1.5",
"@libreservice/my-widget": "^0.1.4",
"@libreservice/my-worker": "^0.4.2",
"@libreservice/wasm-code": "^0.1.1",
"@libreservice/wasm-code": "^0.1.2",
"@playwright/test": "^1.36.1",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.1.0",
Expand Down
8 changes: 4 additions & 4 deletions schemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@
{
"id": "ipa_xsampa",
"name": "X-SAMPA",
"group": "其他",
"group": "音标",
"target": "ipa",
"license": "LGPL-3.0-only"
},
{
"id": "ipa_yunlong",
"name": "云龙国际音标",
"group": "其他",
"group": "音标",
"target": "ipa",
"license": "LGPL-3.0-only"
},
Expand Down Expand Up @@ -170,7 +170,7 @@
{
"id": "combo_pinyin",
"name": "宫保拼音·七指禅",
"group": "音码",
"group": "并击",
"target": "combo-pinyin",
"dependencies": ["luna_pinyin"],
"family": [
Expand All @@ -192,7 +192,7 @@
{
"id": "zyenpheng",
"name": "中古全拼",
"group": "方言",
"group": "古音",
"target": "middle-chinese",
"dependencies": ["luna_pinyin"],
"family": [
Expand Down
5 changes: 5 additions & 0 deletions scripts/build_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ emcmake cmake librime/deps/yaml-cpp -B $yaml_cpp_blddir -G Ninja \
cmake --build $yaml_cpp_blddir
DESTDIR=$root/build/sysroot cmake --install $yaml_cpp_blddir

pushd librime/deps/leveldb
if [[ -z `git status --porcelain` ]]; then
git apply $root/leveldb_patch
fi
popd
leveldb_blddir=build/leveldb
rm -rf $leveldb_blddir
emcmake cmake librime/deps/leveldb -B build/leveldb -G Ninja \
Expand Down

0 comments on commit 11282ce

Please sign in to comment.