- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 21 for sched (0.04 sec)
-
src/runtime/testdata/testprogcgo/needmdeadlock.go
package main // This is for issue #42207. // During a call to needm we could get a SIGCHLD signal // which would itself call needm, causing a deadlock. /* #include <signal.h> #include <pthread.h> #include <sched.h> #include <unistd.h> extern void GoNeedM(); #define SIGNALERS 10 static void* needmSignalThread(void* p) { pthread_t* pt = (pthread_t*)(p); int i; for (i = 0; i < 100; i++) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 1.8K bytes - Viewed (0) -
src/runtime/debugcall.go
// transition anymore. trace.GoSched() } casgstatus(gp, _Grunning, _Grunnable) if trace.ok() { traceRelease(trace) } dropg() lock(&sched.lock) globrunqput(gp) unlock(&sched.lock) trace = traceAcquire() casgstatus(callingG, _Gwaiting, _Grunnable) if trace.ok() { trace.GoUnpark(callingG, 0) traceRelease(trace) } execute(callingG, true)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 20:50:21 UTC 2024 - 7.1K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/main5.c
// os/signal.Notify. // This is a lot like ../testcarchive/main3.c. #include <signal.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <sched.h> #include <dlfcn.h> static void die(const char* msg) { perror(msg); exit(EXIT_FAILURE); } static volatile sig_atomic_t sigioSeen; static void ioHandler(int signo, siginfo_t* info, void* ctxt) {
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
// Test os/signal.Notify and os/signal.Reset. // This is a lot like ../testcshared/main5.c. #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <sched.h> #include <unistd.h> #include <pthread.h> #include "libgo3.h" static void die(const char* msg) { perror(msg); exit(EXIT_FAILURE); } static volatile sig_atomic_t sigioSeen;
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/testcshared/testdata/main4.c
#include <setjmp.h> #include <signal.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <unistd.h> #include <sched.h> #include <time.h> #include <dlfcn.h> static void die(const char* msg) { perror(msg); exit(EXIT_FAILURE); } static volatile sig_atomic_t sigioSeen; // Use up some stack space.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 4.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main2.c
#include <setjmp.h> #include <signal.h> #include <stdarg.h> #include <stddef.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <unistd.h> #include <sched.h> #include <time.h> #include <errno.h> #include "libgo2.h" static void die(const char* msg) { perror(msg); exit(EXIT_FAILURE); } static volatile sig_atomic_t sigioSeen;
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/main4.c
// Test a C thread that calls sigaltstack and then calls Go code. #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <sched.h> #include <pthread.h> #include "libgo4.h" #ifdef _AIX // On AIX, CSIGSTKSZ is too small to handle Go sighandler. #define CSIGSTKSZ 0x4000 #else #define CSIGSTKSZ SIGSTKSZ #endif
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/runtime/tracestatus.go
func (r *traceSchedResourceState) readyNextGen(gen uintptr) { nextGen := traceNextGen(gen) r.seq[nextGen%2] = 0 r.statusTraced[nextGen%3].Store(0) } // statusWasTraced returns true if the sched resource's status was already acquired for tracing. func (r *traceSchedResourceState) statusWasTraced(gen uintptr) bool { return r.statusTraced[gen%3].Load() != 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:03:35 UTC 2024 - 7.2K bytes - Viewed (0) -
src/runtime/lock_js.go
// is running as was running when the call came in from JavaScript, execution can be safely passed back to JavaScript. func handleEvent() { sched.idleTime.Add(nanotime() - idleStart) e := &event{ gp: getg(), returned: false, } events = append(events, e) if !eventHandler() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 21:02:20 UTC 2023 - 7.3K bytes - Viewed (0) -
src/runtime/coro.go
gnext.lockedm.set(mp) } // Release the trace locker. We've completed all the necessary transitions.. if trace.ok() { traceRelease(trace) } // Switch to gnext. Does not return. gogo(&gnext.sched)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:09:18 UTC 2024 - 7.4K bytes - Viewed (0)