update code-comment to expand CAS accronym

This commit is contained in:
kim 2025-04-25 15:29:54 +01:00
commit 6e26972fcd

View file

@ -91,8 +91,8 @@ func (p *preloader) CheckPreload(preload func(*any)) {
} }
} }
// start attempts to start the given preload function, by // start attempts to start the given preload function, by performing
// performing a CAS operation with 'old'. return is success. // a compare and swap operation with 'old'. return is success.
func (p *preloader) start(old *any, preload func(*any)) bool { func (p *preloader) start(old *any, preload func(*any)) bool {
// Optimistically setup a // Optimistically setup a