Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 444 for ts (0.23 sec)

  1. src/runtime/cgo/gcc_windows_arm64.c

    {
    	setg_gcc = setg;
    }
    
    void
    _cgo_sys_thread_start(ThreadStart *ts)
    {
    	_cgo_beginthread(threadentry, ts);
    }
    
    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);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 09 18:17:39 UTC 2022
    - 764 bytes
    - Viewed (0)
  2. test/fixedbugs/issue11286.go

    package main
    
    import "runtime"
    
    const D = 57
    
    type T struct {
    	a [D]float64
    	b map[string]int
    	c [D]float64
    }
    
    var ts []T
    
    func main() {
    	ts = make([]T, 4)
    	for i := range ts {
    		ts[i].b = make(map[string]int)
    	}
    	ts[3].b["abc"] = 42
    	runtime.GC()
    	if ts[3].b["abc"] != 42 {
    		panic("bad field value")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 23 18:37:17 UTC 2015
    - 600 bytes
    - Viewed (0)
  3. src/runtime/os_aix.go

    //go:nosplit
    func semasleep(ns int64) int32 {
    	mp := getg().m
    	if ns >= 0 {
    		var ts timespec
    
    		if clock_gettime(_CLOCK_REALTIME, &ts) != 0 {
    			throw("clock_gettime")
    		}
    		ts.tv_sec += ns / 1e9
    		ts.tv_nsec += ns % 1e9
    		if ts.tv_nsec >= 1e9 {
    			ts.tv_sec++
    			ts.tv_nsec -= 1e9
    		}
    
    		if r, err := sem_timedwait((*semt)(unsafe.Pointer(mp.waitsema)), &ts); r != 0 {
    			if err == _ETIMEDOUT || err == _EAGAIN || err == _EINTR {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. src/net/http/httptest/server_test.go

    	// in the exported fields of Server.
    	"NewServerManual": func(h http.Handler) *Server {
    		ts := &Server{Listener: newLocalListener(), Config: &http.Server{Handler: h}}
    		ts.Start()
    		return ts
    	},
    	"NewTLSServerManual": func(h http.Handler) *Server {
    		ts := &Server{Listener: newLocalListener(), Config: &http.Server{Handler: h}}
    		ts.StartTLS()
    		return ts
    	},
    }
    
    func TestServer(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 16:57:12 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. test/convert1.go

    	_ = Trune(si)   // ERROR "cannot convert.*Trune|invalid type conversion"
    	_ = Tint64(si)
    
    	_ = string(ts)
    	_ = []byte(ts)
    	_ = []rune(ts)
    	_ = []int64(ts) // ERROR "cannot convert.*\[\]int64|invalid type conversion"
    	_ = Tstring(ts)
    	_ = Tbyte(ts)
    	_ = Trune(ts)
    	_ = Tint64(ts) // ERROR "cannot convert.*Tint64|invalid type conversion"
    
    	_ = string(tsb)
    	_ = []byte(tsb)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 3.4K bytes
    - Viewed (0)
  6. src/net/http/serve_test.go

    			io.WriteString(w, r.RemoteAddr)
    		}), func(ts *httptest.Server) {
    			ts.Config.ReadHeaderTimeout = readHeaderTimeout
    			ts.Config.IdleTimeout = 2 * readHeaderTimeout
    		})
    		defer cst.close()
    		ts := cst.ts
    		t.Logf("ReadHeaderTimeout = %v", ts.Config.ReadHeaderTimeout)
    		t.Logf("IdleTimeout = %v", ts.Config.IdleTimeout)
    		c := ts.Client()
    
    		get := func() (string, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  7. src/runtime/cgo/gcc_linux_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
    - 2.3K bytes
    - Viewed (0)
  8. pilot/pkg/config/monitor/file_snapshot_test.go

    }
    
    type testState struct {
    	ConfigFiles map[string][]byte
    	rootPath    string
    }
    
    func (ts *testState) testSetup(t *testing.T) {
    	var err error
    
    	ts.rootPath = t.TempDir()
    
    	for name, content := range ts.ConfigFiles {
    		err = os.WriteFile(filepath.Join(ts.rootPath, name), content, 0o600)
    		if err != nil {
    			t.Fatal(err)
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. src/runtime/cgo/gcc_windows_386.c

    {
    	setg_gcc = setg;
    	tls_g = (DWORD *)tlsg;
    }
    
    void
    _cgo_sys_thread_start(ThreadStart *ts)
    {
    	_cgo_beginthread(threadentry, ts);
    }
    
    extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g);
    static void
    threadentry(void *v)
    {
    	ThreadStart ts;
    
    	ts = *(ThreadStart*)v;
    	free(v);
    
    	// minit queries stack bounds from the OS.
    
    	/*
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 12 03:56:58 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. src/internal/trace/traceviewer/emitter.go

    }
    
    func (e *Emitter) HeapAlloc(ts time.Duration, v uint64) {
    	e.heapStats.heapAlloc = v
    	e.emitHeapCounters(ts)
    }
    
    func (e *Emitter) Focus(id uint64) {
    	e.focusResource = id
    }
    
    func (e *Emitter) GoroutineTransition(ts time.Duration, from, to GState) {
    	e.gstates[from]--
    	e.gstates[to]++
    	if e.prevGstates == e.gstates {
    		return
    	}
    	if e.tsWithinRange(ts) {
    		e.OptionalEvent(&format.Event{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:29:58 UTC 2023
    - 20.4K bytes
    - Viewed (0)
Back to top