目录前言一、为什么使用Lua二、执行流程三、代码详解lua\\lock.lualua\\refresh.lualua\\rlock.lualua\\unlock.lua写优先还是读优先?写锁是如何阻塞写锁的?读锁与读锁之间互斥吗?写锁会有被饿死的情况吗?抽象loc
the situation is like this: im creating a Logger class that can write to a file but the write_to_file() function is in a helper class as a static function.