Reader and writer handles access the same storage but have different identities. Linking them lets the wrapper reuse stored pointers within one database, reject pointers from other databases, and route frozen values through the reader so they can be shared across threads without using the writer's mutable file state.
Reader and writer handles access the same storage but have different identities. Linking them lets the wrapper reuse stored pointers within one database, reject pointers from other databases, and route frozen values through the reader so they can be shared across threads without using the writer's mutable file state.
(create reader-core writer-core hasher)Creates a reader and a writer that refers directly to it.
Creates a reader and a writer that refers directly to it.
(reader-database db)Reader associated with a writer, or the handle itself.
Reader associated with a writer, or the handle itself.
(same-database? db-a db-b)True when handles share a reader, or are the same bare Java handle.
True when handles share a reader, or are the same bare Java handle.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |