Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Hockin (0.16 sec)

  1. misc/go_android_exec/main.go

    // This wrapper uses syscall.Flock to prevent concurrent adb commands,
    // so for now it only builds on platforms that support that system call.
    // TODO(#33974): use a more portable library for file locking.
    
    //go:build darwin || dragonfly || freebsd || illumos || linux || netbsd || openbsd
    
    // This program can be used as go_android_GOARCH_exec by the Go tool.
    // It executes binaries on an android device using adb.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  2. doc/go_mem.html

    	g()
    }
    </pre>
    
    <p>
    it can happen that <code>g</code> prints <code>2</code> and then <code>0</code>.
    </p>
    
    <p>
    This fact invalidates a few common idioms.
    </p>
    
    <p>
    Double-checked locking is an attempt to avoid the overhead of synchronization.
    For example, the <code>twoprint</code> program might be
    incorrectly written as:
    </p>
    
    <pre>
    var a string
    var done bool
    
    func setup() {
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
Back to top