fukamachi / cl-dbi

Database independent interface for Common Lisp
202 stars 28 forks source link

Function steal-cache-table was made thread-safe. #75

Closed svetlyak40wt closed 1 year ago

svetlyak40wt commented 1 year ago

Previously it might modify hash table when other thread might do cleanup-cache-pool.

svetlyak40wt commented 1 year ago

@fukamachi please, review this small change. There is still the problem when two new threads are starting to access database simultaneously, because the might try to insert entries into unprotected hash-map (line 21) in parallel.

fukamachi commented 1 year ago

Thanks!

svetlyak40wt commented 1 year ago

Horay!