- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 73 for tv_nsec (0.23 sec)
-
src/runtime/defs_freebsd_amd64.go
pad_cgo_0 [12]byte } type timespec struct { tv_sec int64 tv_nsec int64 } //go:nosplit func (ts *timespec) setNsec(ns int64) { ts.tv_sec = ns / 1e9 ts.tv_nsec = ns % 1e9 } type timeval struct { tv_sec int64 tv_usec int64 } func (tv *timeval) set_usec(x int32) { tv.tv_usec = int64(x) } type itimerval struct { it_interval timeval
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 4.9K bytes - Viewed (0) -
src/runtime/defs_darwin_amd64.go
si_band int64 __pad [7]uint64 } type timeval struct { tv_sec int64 tv_usec int32 pad_cgo_0 [4]byte } func (tv *timeval) set_usec(x int32) { tv.tv_usec = x } type itimerval struct { it_interval timeval it_value timeval } type timespec struct { tv_sec int64 tv_nsec int64 } //go:nosplit func (ts *timespec) setNsec(ns int64) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 6.4K bytes - Viewed (0) -
src/runtime/defs_linux_amd64.go
_AF_UNIX = 0x1 _SOCK_DGRAM = 0x2 ) type timespec struct { tv_sec int64 tv_nsec int64 } //go:nosplit func (ts *timespec) setNsec(ns int64) { ts.tv_sec = ns / 1e9 ts.tv_nsec = ns % 1e9 } type timeval struct { tv_sec int64 tv_usec int64 } func (tv *timeval) set_usec(x int32) { tv.tv_usec = int64(x) } type sigactiont struct { sa_handler uintptr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 19:05:10 UTC 2023 - 4.7K bytes - Viewed (0) -
src/cmd/cgo/internal/test/sigprocmask.c
for (tries = 0; tries < 20; tries++) { r = pthread_create(&thread, NULL, &sigthreadfunc, NULL); if (r == 0) { return pthread_join(thread, NULL); } if (r != EAGAIN) { return r; } ts.tv_sec = 0; ts.tv_nsec = (tries + 1) * 1000 * 1000; // Milliseconds. nanosleep(&ts, NULL); } return EAGAIN;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 1K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/main5.c
if (raise(SIGIO) < 0) { die("raise"); } if (verbose) { fprintf(stderr, "waiting for sigioSeen\n"); } // Wait until the signal has been delivered. i = 0; while (!sigioSeen) { ts.tv_sec = 0; ts.tv_nsec = 1000000; nanosleep(&ts, NULL); i++; if (i > 5000) { fprintf(stderr, "looping too long waiting for signal\n"); exit(EXIT_FAILURE); } } sigioSeen = 0;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 3.8K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main3.c
die("raise"); } if (verbose) { printf("waiting for sigioSeen\n"); } // Wait until the signal has been delivered. i = 0; while (!sigioSeen) { ts.tv_sec = 0; ts.tv_nsec = 1000000; nanosleep(&ts, NULL); i++; if (i > 5000) { fprintf(stderr, "looping too long waiting for signal\n"); exit(EXIT_FAILURE); } } sigioSeen = 0;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 3.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main4.c
if (i != 0) { fprintf(stderr, "pthread_kill: %s\n", strerror(i)); exit(EXIT_FAILURE); } // Wait until the signal has been delivered. i = 0; while (SIGIOCount() == 0) { ts.tv_sec = 0; ts.tv_nsec = 1000000; nanosleep(&ts, NULL); i++; if (i > 5000) { fprintf(stderr, "looping too long waiting for signal\n"); exit(EXIT_FAILURE); } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 4.5K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main2.c
die("kill"); } if (verbose) { printf("waiting for sigioSeen\n"); } // Wait until the signal has been delivered. i = 0; while (!sigioSeen) { ts.tv_sec = 0; ts.tv_nsec = 1000000; nanosleep(&ts, NULL); i++; if (i > 5000) { fprintf(stderr, "looping too long waiting for SIGIO\n"); exit(EXIT_FAILURE); } } if (verbose) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 4.7K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/main2.c
fprintf(stderr, "BUG: read: %s\n", strerror(errno)); return 2; } // An EBADF error means that the shared library has not opened the // descriptor yet. ts.tv_sec = 0; ts.tv_nsec = 10000000; nanosleep(&ts, NULL); } if (n < 0) { fprintf(stderr, "BUG: failed to read any data from pipe\n"); return 2; } if (n == 0) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.2K bytes - Viewed (0) -
src/runtime/sys_openbsd2.go
// Avoid growing the nosplit stack. systemstack(func() { println("runtime: errno", -errno) throw("clock_gettime failed") }) } return ts.tv_sec*1e9 + int64(ts.tv_nsec) } func clock_gettime_trampoline() //go:nosplit func walltime() (int64, int32) { var ts timespec args := struct { clock_id int32 tp unsafe.Pointer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.7K bytes - Viewed (0)