- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for white (0.09 sec)
-
src/cmd/cgo/internal/testcarchive/testdata/main4.c
// handler. i = pthread_kill(pthread_self(), SIGIO); 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/main5.c
} int fd[2]; if (pipe(fd) != 0) { printf("pipe(2) failed\n"); return 0; } // Close the reading end. close(fd[0]); // Expect that write(2) fails (EPIPE) if (write(fd[1], "some data", 9) != -1) { printf("write(2) unexpectedly succeeded\n"); return 0; } printf("did not receive SIGPIPE\n"); return 0; } case 4: { fprintf(stderr, "OK\n"); fflush(stderr);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 2K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main2.c
} if (kill(0, SIGIO) < 0) { 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); } }
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/testcarchive/testdata/main6.c
struct timeval tvstart, tvnow; int diff; gettimeofday(&tvstart, NULL); go_start_profile(); // Busy wait so we have something to profile. // If we just sleep the profiling signal will never fire. while (1) { gettimeofday(&tvnow, NULL); diff = (tvnow.tv_sec - tvstart.tv_sec) * 1000 * 1000 + (tvnow.tv_usec - tvstart.tv_usec); // Profile frequency is 100Hz so we should definitely // get a signal in 50 milliseconds.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 830 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue6997_linux.c
// license that can be found in the LICENSE file. //go:build !android #include <pthread.h> #include <stdio.h> #include <unistd.h> static pthread_t thread; static void* threadfunc(void* dummy) { while(1) { sleep(1); } } int StartThread() { return pthread_create(&thread, NULL, &threadfunc, NULL); } int CancelThread() { void *r; pthread_cancel(thread); pthread_join(thread, &r);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 536 bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main3.c
// that it is installed before the Go code starts. static void pipeHandler(int signo, siginfo_t* info, void* ctxt) { const char *s = "unexpected SIGPIPE\n"; write(2, s, strlen(s)); exit(EXIT_FAILURE); } static void init(void) __attribute__ ((constructor (200))); static void init() { struct sigaction sa; memset(&sa, 0, sizeof sa);
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/test/testx.c
void lockOSThreadC(void) { lockOSThreadCallback(); } void issue7978c(uint32_t *sync) { while(__atomic_load_n(sync, __ATOMIC_SEQ_CST) != 0) ; __atomic_add_fetch(sync, 1, __ATOMIC_SEQ_CST); while(__atomic_load_n(sync, __ATOMIC_SEQ_CST) != 2) ; issue7978cb(); __atomic_add_fetch(sync, 1, __ATOMIC_SEQ_CST); while(__atomic_load_n(sync, __ATOMIC_SEQ_CST) != 6) ; } void f7665(void) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 582 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); } }
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/test/issue4029.c
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !windows && !static && !(darwin && internal) #include <stdint.h> #include <dlfcn.h> // Write our own versions of dlopen/dlsym/dlclose so that we represent // the opaque handle as a Go uintptr rather than a Go pointer to avoid // garbage collector confusion. See issue 23663. uintptr_t dlopen4029(char* name, int flags) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 04 15:41:19 UTC 2023 - 781 bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/main4.c
} if (kill(0, SIGIO) < 0) { die("kill"); } 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); } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 4.2K bytes - Viewed (0)