Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for tryMap (0.57 sec)

  1. src/runtime/sema.go

    	s.g = getg()
    	s.elem = unsafe.Pointer(addr)
    	s.next = nil
    	s.prev = nil
    	s.waiters = 0
    
    	var last *sudog
    	pt := &root.treap
    	for t := *pt; t != nil; t = *pt {
    		if t.elem == unsafe.Pointer(addr) {
    			// Already have addr in list.
    			if lifo {
    				// Substitute s in t's place in treap.
    				*pt = s
    				s.ticket = t.ticket
    				s.acquiretime = t.acquiretime // preserve head acquiretime as oldest time
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/sync/map.go

    			return nil, false
    		}
    		if e.p.CompareAndSwap(p, nil) {
    			return *p, true
    		}
    	}
    }
    
    // trySwap swaps a value if the entry has not been expunged.
    //
    // If the entry is expunged, trySwap returns false and leaves the entry
    // unchanged.
    func (e *entry) trySwap(i *any) (*any, bool) {
    	for {
    		p := e.p.Load()
    		if p == expunged {
    			return nil, false
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  3. cluster/gce/gci/configure.sh

    }
    
    # Sets an EXIT trap.
    # Args:
    #   $1:... : the trap command.
    #
    # NOTE: this function is duplicated in configure-helper.sh, any changes here
    # should be duplicated there as well.
    function log-trap-push {
      local t="${*:1}"
      LOG_TRAP_STACK+=("${t}")
      # shellcheck disable=2064
      trap "${t}" EXIT
    }
    
    # Removes and restores an EXIT trap.
    #
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 04:14:02 UTC 2024
    - 36.5K bytes
    - Viewed (0)
  4. src/syscall/syscall_aix.go

    import (
    	"unsafe"
    )
    
    func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err Errno)
    func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err Errno)
    
    // Implemented in runtime/syscall_aix.go.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. samples/bookinfo/platform/kube/cleanup.sh

    OUTPUT=$(mktemp)
    export OUTPUT
    echo "Application cleanup may take up to one minute"
    kubectl delete -n "${NAMESPACE}" -f "$SCRIPTDIR/bookinfo.yaml" > "${OUTPUT}" 2>&1
    ret=$?
    function cleanup() {
      rm -f "${OUTPUT}"
    }
    
    trap cleanup EXIT
    
    if [[ ${ret} -eq 0 ]];then
      cat "${OUTPUT}"
    else
      # ignore NotFound errors
      OUT2=$(grep -v NotFound "${OUTPUT}")
      if [[ -n ${OUT2} ]];then
        cat "${OUTPUT}"
        exit ${ret}
      fi
    fi
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. buildscripts/minio-upgrade.sh

    #!/bin/bash
    
    trap 'cleanup $LINENO' ERR
    
    # shellcheck disable=SC2120
    cleanup() {
    	MINIO_VERSION=dev /tmp/gopath/bin/docker-compose \
    		-f "buildscripts/upgrade-tests/compose.yml" \
    		down || true
    
    	MINIO_VERSION=dev /tmp/gopath/bin/docker-compose \
    		-f "buildscripts/upgrade-tests/compose.yml" \
    		rm || true
    
    	for volume in $(docker volume ls -q | grep upgrade); do
    		docker volume rm ${volume} || true
    	done
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 05:08:11 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. src/os/exec_posix.go

    		res = "signal: " + status.Signal().String()
    	case status.Stopped():
    		res = "stop signal: " + status.StopSignal().String()
    		if status.StopSignal() == syscall.SIGTRAP && status.TrapCause() != 0 {
    			res += " (trap " + itoa.Itoa(status.TrapCause()) + ")"
    		}
    	case status.Continued():
    		res = "continued"
    	}
    	if status.CoreDump() {
    		res += " (core dumped)"
    	}
    	return res
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. samples/bookinfo/src/details/details.rb

    end
    
    port = Integer(ARGV[0])
    
    server = WEBrick::HTTPServer.new(
        :BindAddress => '*',
        :Port => port,
        :AcceptCallback => -> (s) { s.setsockopt(Socket::IPPROTO_TCP, Socket::TCP_NODELAY, 1) },
    )
    
    trap 'INT' do server.shutdown end
    
    server.mount_proc '/health' do |req, res|
        res.status = 200
        res.body = {'status' => 'Details is healthy'}.to_json
        res['Content-Type'] = 'application/json'
    end
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 14:35:54 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. cluster/gce/gci/configure-helper.sh

    }
    
    # Sets an EXIT trap.
    # Args:
    #   $1:... : the trap command.
    #
    # NOTE: this function is duplicated in configure.sh, any changes here should be
    # duplicated there as well.
    function log-trap-push {
      local t="${*:1}"
      LOG_TRAP_STACK+=("${t}")
      # shellcheck disable=2064
      trap "${t}" EXIT
    }
    
    # Removes and restores an EXIT trap.
    #
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 22:07:47 UTC 2024
    - 141.1K bytes
    - Viewed (0)
  10. src/syscall/zerrors_solaris_amd64.go

    }
    
    // Signal table
    var signals = [...]string{
    	1:  "hangup",
    	2:  "interrupt",
    	3:  "quit",
    	4:  "illegal Instruction",
    	5:  "trace/Breakpoint Trap",
    	6:  "abort",
    	7:  "emulation Trap",
    	8:  "arithmetic Exception",
    	9:  "killed",
    	10: "bus Error",
    	11: "segmentation Fault",
    	12: "bad System Call",
    	13: "broken Pipe",
    	14: "alarm Clock",
    	15: "terminated",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 50.8K bytes
    - Viewed (0)
Back to top