comm icon indicating copy to clipboard operation
comm copied to clipboard

Make all bounded channels safe

Open mahkoh opened this issue 10 years ago • 2 comments

This can be done by checking on 32 bit systems if overflow occured after we've acquired a read/write slot. If it happened we have to abort the process. On 64 bit overflow can be considered impossible.

mahkoh avatar Mar 03 '15 19:03 mahkoh

This is probably extremely naive, but can't we work with 64 bit values regardless of architecture? Or do (some) atomic instructions only work with native word sizes?

marcusklaas avatar Mar 03 '15 23:03 marcusklaas

Unfortunately the stdlib only provides usize atomics.

mahkoh avatar Mar 03 '15 23:03 mahkoh