Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for atomicCounterStmt (0.64 sec)

  1. src/cmd/cover/cover.go

    }
    
    // incCounterStmt returns the expression: __count[23]++.
    func incCounterStmt(f *File, counter string) string {
    	return fmt.Sprintf("%s++", counter)
    }
    
    // atomicCounterStmt returns the expression: atomic.AddUint32(&__count[23], 1)
    func atomicCounterStmt(f *File, counter string) string {
    	return fmt.Sprintf("%sAddUint32(&%s, 1)", atomicPackagePrefix(), counter)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top