Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Unlock (0.18 sec)

  1. src/cmd/cgo/internal/test/callback.go

    	callbackMutex.Lock()
    	callbackToken++
    	i := callbackToken
    	callbackFuncs[i] = f
    	callbackMutex.Unlock()
    
    	// Pass the address of i because the C function was written to
    	// take a pointer.  We could pass an int if we felt like
    	// rewriting the C code.
    	C.callback(unsafe.Pointer(&i))
    
    	callbackMutex.Lock()
    	delete(callbackFuncs, i)
    	callbackMutex.Unlock()
    }
    
    //export goCallback
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    of an interface type or of elements of a composite type remains unchanged:
    </p>
    
    <pre>
    // A Mutex is a data type with two methods, Lock and Unlock.
    type Mutex struct         { /* Mutex fields */ }
    func (m *Mutex) Lock()    { /* Lock implementation */ }
    func (m *Mutex) Unlock()  { /* Unlock implementation */ }
    
    // NewMutex has the same composition as Mutex but its method set is empty.
    type NewMutex Mutex
    
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  3. api/go1.3.txt

    pkg syscall (linux-amd64-cgo), type Flock_t struct, Pad_cgo_0 [4]uint8
    pkg syscall (linux-amd64-cgo), type Flock_t struct, Pad_cgo_1 [4]uint8
    pkg syscall (linux-amd64-cgo), type Flock_t struct, Pid int32
    pkg syscall (linux-amd64-cgo), type Flock_t struct, Start int64
    pkg syscall (linux-amd64-cgo), type Flock_t struct, Type int16
    pkg syscall (linux-amd64-cgo), type Flock_t struct, Whence int16
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jun 02 02:45:00 GMT 2014
    - 117K bytes
    - Viewed (0)
Back to top