replace mutex with rwlock
Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
parent
c7d0bba928
commit
e055f26e90
5 changed files with 72 additions and 54 deletions
|
|
@ -45,7 +45,7 @@ pub static LIB_STORE_NO_ENV: Symbol = Symbol {
|
|||
|
||||
// TODO : declare function if arg list is long enough
|
||||
fn _store_callback (ast: &Seg, env_cfg: bool) -> Ctr {
|
||||
let mut table_handle = SYM_TABLE.lock().unwrap();
|
||||
let mut table_handle = SYM_TABLE.write().unwrap();
|
||||
let is_var = ast.len() == 2;
|
||||
if let Ctr::Symbol(ref identifier) = *ast.car {
|
||||
match &*ast.cdr {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue