Added test file

This commit is contained in:
Justin Ethier 2019-05-28 13:31:01 -04:00
parent e6d7b80436
commit 7b16c4ae49

13
libs/cyclone/atomics.scm Normal file
View file

@ -0,0 +1,13 @@
;; 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)