mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
switch to use native concurrent hash tables
This commit is contained in:
parent
b0ea353623
commit
7e4ad7fbb5
4 changed files with 47 additions and 44 deletions
|
|
@ -8,6 +8,15 @@
|
|||
|
||||
(cl:in-package :clog)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Implementation - make-hash-table*
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(defun make-hash-table* (&rest args)
|
||||
"Use native concurrent hash tables"
|
||||
#+(or sbcl ecl mezzano)
|
||||
(apply #'make-hash-table :synchronized t args)
|
||||
#-(or sbcl ecl mezzano) (make-hash-table))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Implementation - clog-group
|
||||
|
|
@ -16,7 +25,7 @@
|
|||
(defclass clog-group ()
|
||||
((controls
|
||||
:accessor controls
|
||||
:initform (make-hash-table :test 'equalp))))
|
||||
:initform (make-hash-table* :test 'equalp))))
|
||||
|
||||
(defun create-group ()
|
||||
"Return a new CLOG-GROUP object for storing CLOG-OBJs. They are indexed by
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue