Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Cur (0.03 sec)

  1. src/cmd/vendor/golang.org/x/sync/semaphore/semaphore.go

    func (s *Weighted) TryAcquire(n int64) bool {
    	s.mu.Lock()
    	success := s.size-s.cur >= n && s.waiters.Len() == 0
    	if success {
    		s.cur += n
    	}
    	s.mu.Unlock()
    	return success
    }
    
    // Release releases the semaphore with a weight of n.
    func (s *Weighted) Release(n int64) {
    	s.mu.Lock()
    	s.cur -= n
    	if s.cur < 0 {
    		s.mu.Unlock()
    		panic("semaphore: released more than held")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. pilot/cmd/pilot-agent/app/fds_unix.go

    func raiseFileLimits() (uint64, error) {
    	rlimit := unix.Rlimit{}
    	if err := unix.Getrlimit(unix.RLIMIT_NOFILE, &rlimit); err != nil {
    		return 0, err
    	}
    	rlimit.Cur = rlimit.Max
    	if err := unix.Setrlimit(unix.RLIMIT_NOFILE, &rlimit); err != nil {
    		return 0, err
    	}
    
    	return rlimit.Cur, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 22:16:26 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. src/syscall/rlimit.go

    // which Go of course has no choice but to respect.
    func init() {
    	var lim Rlimit
    	if err := Getrlimit(RLIMIT_NOFILE, &lim); err == nil && lim.Cur != lim.Max {
    		origRlimitNofile.Store(&lim)
    		nlim := lim
    		nlim.Cur = nlim.Max
    		adjustFileLimit(&nlim)
    		setrlimit(RLIMIT_NOFILE, &nlim)
    	}
    }
    
    func Setrlimit(resource int, rlim *Rlimit) error {
    	if resource == RLIMIT_NOFILE {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:57 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultLifecycleBindingsInjector.java

            }
        }
    
        private void addPlugin(Map<Plugin, Plugin> plugins, Plugin plugin) {
            Plugin cur = plugins.putIfAbsent(plugin, plugin);
            if (cur != null) {
                Map<String, PluginExecution> execs = new LinkedHashMap<>();
                cur.getExecutions().forEach(e -> execs.put(e.getId(), e));
                plugin.getExecutions().forEach(e -> {
                    int i = 0;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. Dockerfile.release.fips

        MINIO_CONFIG_ENV_FILE=config.env
    
    COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
    COPY --from=build /go/bin/minio /usr/bin/minio
    COPY --from=build /go/bin/cur* /usr/bin/
    
    COPY CREDITS /licenses/CREDITS
    COPY LICENSE /licenses/LICENSE
    COPY dockerscripts/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
    
    EXPOSE 9000
    VOLUME ["/data"]
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Mar 30 09:41:56 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. src/expvar/expvar.go

    }
    
    // Add adds delta to v.
    func (v *Float) Add(delta float64) {
    	for {
    		cur := v.f.Load()
    		curVal := math.Float64frombits(cur)
    		nxtVal := curVal + delta
    		nxt := math.Float64bits(nxtVal)
    		if v.f.CompareAndSwap(cur, nxt) {
    			return
    		}
    	}
    }
    
    // Set sets v to value.
    func (v *Float) Set(value float64) {
    	v.f.Store(math.Float64bits(value))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 21:32:11 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. Dockerfile.hotfix

        MC_CONFIG_DIR=/tmp/.mc
    
    COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
    COPY --from=build /go/bin/minio /usr/bin/minio
    COPY --from=build /go/bin/mc /usr/bin/mc
    COPY --from=build /go/bin/cur* /usr/bin/
    
    COPY CREDITS /licenses/CREDITS
    COPY LICENSE /licenses/LICENSE
    COPY dockerscripts/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
    
    EXPOSE 9000
    VOLUME ["/data"]
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Mar 30 09:41:56 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  8. Dockerfile.release

        MC_CONFIG_DIR=/tmp/.mc
    
    COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
    COPY --from=build /go/bin/minio /usr/bin/minio
    COPY --from=build /go/bin/mc /usr/bin/mc
    COPY --from=build /go/bin/cur* /usr/bin/
    
    COPY CREDITS /licenses/CREDITS
    COPY LICENSE /licenses/LICENSE
    COPY dockerscripts/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
    
    EXPOSE 9000
    VOLUME ["/data"]
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Mar 29 19:10:49 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. Dockerfile.release.old_cpu

        MC_CONFIG_DIR=/tmp/.mc
    
    COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
    COPY --from=build /go/bin/minio /usr/bin/minio
    COPY --from=build /go/bin/mc /usr/bin/mc
    COPY --from=build /go/bin/cur* /usr/bin/
    
    COPY CREDITS /licenses/CREDITS
    COPY LICENSE /licenses/LICENSE
    COPY dockerscripts/docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
    
    EXPOSE 9000
    VOLUME ["/data"]
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Mar 30 09:41:56 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. src/syscall/exec_unix_test.go

    	t.Error("syscall.Exec returned")
    }
    
    // Test that rlimit values are restored by exec.
    func TestRlimitRestored(t *testing.T) {
    	if os.Getenv("GO_WANT_HELPER_PROCESS") != "" {
    		fmt.Println(syscall.OrigRlimitNofile().Cur)
    		os.Exit(0)
    	}
    
    	orig := syscall.OrigRlimitNofile()
    	if orig == nil {
    		t.Skip("skipping test because rlimit not adjusted at startup")
    	}
    
    	executable, err := os.Executable()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top