libmill icon indicating copy to clipboard operation
libmill copied to clipboard

Description of primitives without synchronization

Open liushichuan opened this issue 7 years ago • 3 comments

Missing documentation for multiple data protection between coroutines.

liushichuan avatar Oct 31 '18 02:10 liushichuan

?

sustrik avatar Oct 31 '18 03:10 sustrik

I wanna read/write a struct which maybe large enough between multi coroutine. How can I guarantee the integrity of the struct? Is "channels operation" atomic operation?

liushichuan avatar Oct 31 '18 03:10 liushichuan

Yes, it's atomic.

sustrik avatar Oct 31 '18 06:10 sustrik