Skip to content

Commit

Permalink
Use atomic increments on CCL (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruricolist authored Sep 21, 2024
1 parent 250b30d commit 4daf8b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/port.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@
`(sb-ext:atomic-incf ,name) ; (postincrement)
#+(and allegro smp-macros)
`(1- (excl:incf-atomic (car ,name)))
#-(or (and sbcl 64-bit) (and allegro smp-macros))
#+ccl
`(1- (ccl::atomic-incf (car ,name)))
#-(or (and sbcl 64-bit) (and allegro smp-macros) ccl)
`(with-lock ((cdr ,name))
(1- (incf (car ,name)))))

Expand Down

0 comments on commit 4daf8b3

Please sign in to comment.