single consumer queue (Java) at:
https://github.com/mjpt777/examples/tree/master/src/java/uk/co/real_logic/queues
I saw Go's atomic.storePointer and atomic.loadPointer. Seems like a
combination of the two can be used to implement Java's volatile semantics.
Is there a way I could achieve what lazySet/ putOrderedObject does?
I am planning to write a cache where a single goroutine locked to an OS
thread writes to the cache and other goroutines read from the cache. A
lazySet / putOrderedObject equivalent could be a good optimization here. I
know I can use a mutex or RW mutex instead. I want to optimize for the
single writer use case to just see the improvements possible if only for
academic reasons.
Thanks,
rajiv
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.