Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 292 for atexits (0.16 sec)

  1. src/cmd/dist/util.go

    	bghelpers.Wait()
    
    	xexit(2)
    }
    
    var atexits []func()
    
    // xexit exits the process with return code n.
    func xexit(n int) {
    	for i := len(atexits) - 1; i >= 0; i-- {
    		atexits[i]()
    	}
    	os.Exit(n)
    }
    
    // xatexit schedules the exit-handler f to be run when the program exits.
    func xatexit(f func()) {
    	atexits = append(atexits, f)
    }
    
    // xprintf prints a message to standard output.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 17:50:29 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/util.go

    	"encoding/binary"
    	"fmt"
    	"os"
    )
    
    var atExitFuncs []func()
    
    func AtExit(f func()) {
    	atExitFuncs = append(atExitFuncs, f)
    }
    
    // runAtExitFuncs runs the queued set of AtExit functions.
    func runAtExitFuncs() {
    	for i := len(atExitFuncs) - 1; i >= 0; i-- {
    		atExitFuncs[i]()
    	}
    	atExitFuncs = nil
    }
    
    // Exit exits with code after executing all atExitFuncs.
    func Exit(code int) {
    	runAtExitFuncs()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 22 20:39:11 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. src/runtime/os_plan9.go

    	if ns == 0 {
    		return scratch
    	}
    	return ns
    }
    
    var goexits = []byte("go: exit ")
    var emptystatus = []byte("\x00")
    var exiting uint32
    
    func goexitsall(status *byte) {
    	var buf [_ERRMAX]byte
    	if !atomic.Cas(&exiting, 0, 1) {
    		return
    	}
    	getg().m.locks++
    	n := copy(buf[:], goexits)
    	n = copy(buf[n:], gostringnocopy(status))
    	pid := getpid()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. src/cmd/covdata/covdata.go

    var memprofilerateflag = flag.Int("memprofilerate", 0, "Set memprofile sampling rate to value")
    
    var matchpkg func(name string) bool
    
    var atExitFuncs []func()
    
    func atExit(f func()) {
    	atExitFuncs = append(atExitFuncs, f)
    }
    
    func Exit(code int) {
    	for i := len(atExitFuncs) - 1; i >= 0; i-- {
    		f := atExitFuncs[i]
    		atExitFuncs = atExitFuncs[:i]
    		f()
    	}
    	os.Exit(code)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. src/os/exec/exec_test.go

    	// immediately) to unexpectedly block on reading from the pipe.
    	var (
    		nHangs       = runtime.GOMAXPROCS(0)
    		nExits       = runtime.GOMAXPROCS(0)
    		hangs, exits sync.WaitGroup
    	)
    	hangs.Add(nHangs)
    	exits.Add(nExits)
    
    	// ready is done when the goroutines have done as much work as possible to
    	// prepare to create subprocesses. It isn't strictly necessary for the test,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/base/base.go

    	if logHeapTweaks {
    		sample := append([]metrics.Sample(nil), sample...) // avoid races with GC callback
    		AtExit(func() {
    			metrics.Read(sample)
    			goal := sample[GOAL].Value.Uint64()
    			count := sample[COUNT].Value.Uint64()
    			oldGogc := debug.SetGCPercent(100)
    			if oldGogc == 100 {
    				fmt.Fprintf(os.Stderr, "GCAdjust: AtExit goal %d gogc %d count %d maxprocs %d gcConcurrency %d\n",
    					goal, oldGogc, count, mp, gcConcurrency)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:18:34 UTC 2023
    - 8K bytes
    - Viewed (0)
  7. src/iter/iter.go

    			panic("iter.Pull: next called again before yield")
    		}
    		yieldNext = true
    		race.Release(unsafe.Pointer(&racer))
    		coroswitch(c)
    		race.Acquire(unsafe.Pointer(&racer))
    
    		// Propagate panics and goexits from seq.
    		if panicValue != nil {
    			if panicValue == goexitPanicValue {
    				// Propagate runtime.Goexit from seq.
    				runtime.Goexit()
    			} else {
    				panic(panicValue)
    			}
    		}
    		return v, ok
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. test/typeparam/graph.go

    	18: {exits: [10]int{down: 16, east: 19, west: 18, up: 22}},
    	19: {exits: [10]int{up: 29, west: 18, ne: 15, east: 20, south: 30}},
    	20: {exits: [10]int{ne: 19, west: 20, se: 21}},
    	21: {exits: [10]int{north: 20}}, // Dead End
    	22: {exits: [10]int{north: 18, east: 24, down: 23, south: 28, west: 26, nw: 22}},
    	23: {exits: [10]int{east: 22, west: 28, up: 24}},
    	24: {exits: [10]int{ne: 25, down: 23, nw: 28, sw: 26}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/query/PhraseQueryCommand.java

                final float boost, final String field, final String[] texts) {
            final String text = String.join(" ", texts);
    
            if (Constants.DEFAULT_FIELD.equals(field)) {
                context.addFieldLog(field, text);
                stream(texts).of(stream -> stream.forEach(t -> context.addHighlightedQuery(t)));
                return buildDefaultQueryBuilder(fessConfig, context, (f, b) -> buildMatchPhraseQuery(f, text).boost(b * boost));
            }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/bootstrap/EntryPointTest.groovy

                action.execute(listener)
            }
        }
    
        def "exits with success when action executes successfully"() {
            when:
            entryPoint.run()
    
            then:
            1 * action.execute(!null)
            1 * completer.complete()
            0 * _._
        }
    
        def "exits with failure when action reports a failure"() {
            def failure = new RuntimeException()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top