Skip to content

Commit

Permalink
Merge pull request #157 from fukamachi/bt-apiv2
Browse files Browse the repository at this point in the history
Migrate to Bordeaux-Threads APIv2.
  • Loading branch information
fukamachi authored Sep 17, 2023
2 parents 8de049d + 44bcba6 commit d5bdd0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connection-cache.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

;; An LRU-POOL can have multiple entries for the same key
(defstruct lru-pool
(lock #+thread-support (bt:make-lock "connection pool lock")
(lock #+thread-support (bt2:make-lock :name "connection pool lock")
#-thread-support nil)
(hash-table nil :type (or null hash-table)) ;; hash table entries are lists of elements
(head nil :type (or null lru-pool-elt)) ;; most recently used is here and it's a doubly-linked-list
Expand Down Expand Up @@ -128,7 +128,7 @@

(defmacro with-lock (lock &body body)
(declare (ignorable lock))
#+thread-support `(bt:with-lock-held (,lock)
#+thread-support `(bt2:with-lock-held (,lock)
,@body)
#-thread-support `(progn ,@body))

Expand Down

0 comments on commit d5bdd0b

Please sign in to comment.