mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
WIP
This commit is contained in:
parent
104d7f783a
commit
5b87573371
1 changed files with 13 additions and 11 deletions
|
@ -1,13 +1,15 @@
|
|||
;; A temporary test file, let's try to get an API going here before writing too much support code
|
||||
;;
|
||||
;; see: https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/compare-and-set!
|
||||
;; initial operations to support:
|
||||
;; - create atomic
|
||||
;; - ref atomic
|
||||
;; - swap, see https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/swap!
|
||||
;; - compare and swap?
|
||||
;;
|
||||
;;
|
||||
;; once that starts going, double-back to how to allocate shared objects effectively.
|
||||
;; probably want a (make-shared)
|
||||
;; may also way a way to allocate multiple shared objects at once (since a minor GC will likely be req'd)
|
||||
|
||||
see: https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/compare-and-set!
|
||||
initial operations to support:
|
||||
- create atomic
|
||||
- ref atomic
|
||||
- swap, see https://clojure.github.io/clojure/clojure.core-api.html#clojure.core/swap!
|
||||
- compare and swap?
|
||||
|
||||
|
||||
once that starts going, double-back to how to allocate shared objects effectively.
|
||||
probably want a (make-shared)
|
||||
may also way a way to allocate multiple shared objects at once (since a minor GC will likely be req'd)
|
||||
;; (atomic? obj)
|
||||
|
|
Loading…
Add table
Reference in a new issue