Menci
Menci
So, any progress here?
The algorithm is here https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock#Using_two_mutexes. The last finished reader should unlock the write lock, but the lock may be locked by another reader.
I can only implement it with the second algorithm in https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock#Using_a_condition_variable_and_a_mutex. But in Redis I have to reaplce conditional variables with sleeping and polling (https://github.com/syzoj/syzoj-ng/blob/master/src/redis/redis.service.ts#L94). I'm wondering if there're a...
@meredian I know simple sleeping & polling is unsafe. I used a redlock to read and write the counters to ensure the consistant of the state. https://github.com/syzoj/syzoj-ng/blob/804c94afda1929b85a88fca5ba7339f8e9c9d964/src/redis/redis.service.ts#L107
Unfortunately there doesn't seem to be a RW lock library with Redis on NPM.
我和你一样的系统,不装这个模块,都会频繁的 keeps stop …… 但是不会闪退
I think we could add a method for the user to load WebAssembly module manually. Then CF Worker users could upload WASM file and load the module by `new WebAssembly.Instance(UPLOADED_WASM_MODULE,...
  
https://github.com/GangZhuo/BaiduPCS/blob/master/LICENSE MIT link here
My solution: ```ts import tsconfig from "./tsconfig.json"; const tsconfigPathAliases = Object.fromEntries( Object.entries(tsconfig.compilerOptions.paths).map(([key, values]) => { let value = values[0]; if (key.endsWith("/*")) { key = key.slice(0, -2); value = value.slice(0, -2);...