Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 321 for ts (0.05 sec)

  1. src/runtime/cgo/gcc_linux_s390x.c

    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    		fatalf("pthread_create failed: %s", strerror(err));
    	}
    }
    
    extern void crosscall_s390x(void (*fn)(void), void *g);
    
    static void*
    threadentry(void *v)
    {
    	ThreadStart ts;
    
    	ts = *(ThreadStart*)v;
    	free(v);
    
    	// Save g for this thread in C TLS
    	setg_gcc((void*)ts.g);
    
    	crosscall_s390x(ts.fn, (void*)ts.g);
    	return nil;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 03:13:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. src/runtime/cgo/gcc_ppc64x.c

    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    		fatalf("pthread_create failed: %s", strerror(err));
    	}
    }
    
    extern void crosscall_ppc64(void (*fn)(void), void *g);
    
    static void*
    threadentry(void *v)
    {
    	ThreadStart ts;
    
    	ts = *(ThreadStart*)v;
    	_cgo_tsan_acquire();
    	free(v);
    	_cgo_tsan_release();
    
    	// Save g for this thread in C TLS
    	setg_gcc((void*)ts.g);
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 03:13:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. src/cmd/trace/gstate.go

    func (gs *gState[R]) blockedSyscallEnd(ts trace.Time, stack trace.Stack, ctx *traceContext) {
    	name := "exit blocked syscall"
    	gs.setStartCause(ts, name, trace.SyscallP, stack)
    
    	// Emit an syscall exit instant event for the "Syscall" lane.
    	ctx.Instant(traceviewer.InstantEvent{
    		Name:     name,
    		Ts:       ctx.elapsed(ts),
    		Resource: trace.SyscallP,
    		Stack:    ctx.Stack(viewerFrames(stack)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  4. src/net/http/fs_test.go

    func testServeIndexHtmlFS(t *testing.T, mode testMode) {
    	const want = "index.html says hello\n"
    	ts := newClientServerTest(t, mode, FileServer(Dir("."))).ts
    	defer ts.Close()
    
    	for _, path := range []string{"/testdata/", "/testdata/index.html"} {
    		res, err := ts.Client().Get(ts.URL + path)
    		if err != nil {
    			t.Fatal(err)
    		}
    		b, err := io.ReadAll(res.Body)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  5. src/runtime/cgo/gcc_netbsd.c

    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    		fatalf("pthread_create failed: %s", strerror(err));
    	}
    }
    
    extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g);
    static void*
    threadentry(void *v)
    {
    	ThreadStart ts;
    	stack_t ss;
    
    	ts = *(ThreadStart*)v;
    	free(v);
    
    	// On NetBSD, a new thread inherits the signal stack of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 03:55:51 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. src/runtime/cgo/gcc_freebsd_amd64.c

    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    		fatalf("pthread_create failed: %s", strerror(err));
    	}
    }
    
    extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g);
    static void*
    threadentry(void *v)
    {
    	ThreadStart ts;
    
    	ts = *(ThreadStart*)v;
    	_cgo_tsan_acquire();
    	free(v);
    	_cgo_tsan_release();
    
    	crosscall1(ts.fn, setg_gcc, (void*)ts.g);
    	return nil;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. src/net/http/transport_test.go

    			ts := newClientServerTest(t, mode, h).ts
    			go proxy(t)
    			c := ts.Client()
    			c.Transport.(*Transport).Proxy = ProxyURL(pu)
    			r, err := c.Head(ts.URL)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if r.Header.Get(sentinelHeader) != sentinelValue {
    				t.Errorf("Failed to retrieve sentinel value")
    			}
    			got := <-ch
    			ts.Close()
    			tsu, err := url.Parse(ts.URL)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  8. src/net/http/clientserver_test.go

    	}
    
    	switch mode {
    	case http1Mode:
    		cst.ts.Start()
    	case https1Mode:
    		cst.ts.StartTLS()
    	case http2Mode:
    		ExportHttp2ConfigureServer(cst.ts.Config, nil)
    		cst.ts.TLS = cst.ts.Config.TLSConfig
    		cst.ts.StartTLS()
    	default:
    		t.Fatalf("unknown test mode %v", mode)
    	}
    	cst.c = cst.ts.Client()
    	cst.tr = cst.c.Transport.(*Transport)
    	if mode == http2Mode {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
  9. src/syscall/timestruct.go

    // license that can be found in the LICENSE file.
    
    //go:build unix || (js && wasm) || wasip1
    
    package syscall
    
    // TimespecToNsec returns the time stored in ts as nanoseconds.
    func TimespecToNsec(ts Timespec) int64 { return ts.Nano() }
    
    // NsecToTimespec converts a number of nanoseconds into a [Timespec].
    func NsecToTimespec(nsec int64) Timespec {
    	sec := nsec / 1e9
    	nsec = nsec % 1e9
    	if nsec < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 958 bytes
    - Viewed (0)
  10. src/runtime/cgo/gcc_linux_arm64.c

    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    		fatalf("pthread_create failed: %s", strerror(err));
    	}
    }
    
    extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g);
    static void*
    threadentry(void *v)
    {
    	ThreadStart ts;
    
    	ts = *(ThreadStart*)v;
    	free(v);
    
    	crosscall1(ts.fn, setg_gcc, (void*)ts.g);
    	return nil;
    }
    
    void
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top