- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 271 for defBlock (0.13 sec)
-
src/log/slog/logger_test.go
if !attrsEqual(got, test.want) { t.Errorf("%v:\ngot %v\nwant %v", test.args, got, test.want) } } } func TestSetDefault(t *testing.T) { // Verify that setting the default to itself does not result in deadlock. ctx, cancel := context.WithTimeout(context.Background(), time.Second) defer cancel() defer func(w io.Writer) { log.SetOutput(w) }(log.Writer()) log.SetOutput(io.Discard) go func() { Info("A")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 10 21:25:30 UTC 2023 - 19.5K bytes - Viewed (0) -
src/net/rpc/server_test.go
done := make(chan bool) go func() { testSendDeadlock(client) testSendDeadlock(client) done <- true }() select { case <-done: return case <-time.After(5 * time.Second): t.Fatal("deadlock") } } func testSendDeadlock(client *Client) { defer func() { recover() }() args := &Args{7, 8} reply := new(Reply) client.Call("Arith.Add", args, reply) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 05:23:29 UTC 2023 - 19K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Striped.java
/** * Returns the stripes that correspond to the passed objects, in ascending (as per {@link * #getAt(int)}) order. Thus, threads that use the stripes in the order returned by this method * are guaranteed to not deadlock each other. * * <p>It should be noted that using a {@code Striped<L>} with relatively few stripes, and {@code * bulkGet(keys)} with a relative large number of keys can cause an excessive number of shared
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 10 20:55:18 UTC 2023 - 20.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
{31, "EMLINK", "too many links"}, {32, "EPIPE", "broken pipe"}, {33, "EDOM", "numerical argument out of domain"}, {34, "ERANGE", "numerical result out of range"}, {35, "EDEADLK", "resource deadlock avoided"}, {36, "ENAMETOOLONG", "file name too long"}, {37, "ENOLCK", "no locks available"}, {38, "ENOSYS", "function not implemented"}, {39, "ENOTEMPTY", "directory not empty"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 36.7K bytes - Viewed (0) -
tensorflow/c/kernels_experimental.cc
// sparse access; when a later function sees `copy_on_read_mode` is off, it // will try to lock the variable again for updating `copy_on_read_mode` and // cause the deadlock, since the variable mutex is non-re-entrant. for (auto* var : vars) { TF_CHECK_OK(EnsureSparseVariableAccess( ctx, /*variantType=*/false, copyFunc, var, /*lock_held=*/true)); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 06:12:29 UTC 2024 - 30.9K bytes - Viewed (0) -
src/syscall/syscall_linux_test.go
} } // TestAllThreadsSyscallBlockedSyscall confirms that AllThreadsSyscall // can interrupt threads in long-running system calls. This test will // deadlock if this doesn't work correctly. func TestAllThreadsSyscallBlockedSyscall(t *testing.T) { if _, _, err := syscall.AllThreadsSyscall(syscall.SYS_PRCTL, PR_SET_KEEPCAPS, 0, 0); err == syscall.ENOTSUP {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 23K bytes - Viewed (0) -
src/syscall/zerrors_darwin_arm64.go
5: "input/output error", 6: "device not configured", 7: "argument list too long", 8: "exec format error", 9: "bad file descriptor", 10: "no child processes", 11: "resource deadlock avoided", 12: "cannot allocate memory", 13: "permission denied", 14: "bad address", 15: "block device required", 16: "resource busy", 17: "file exists", 18: "cross-device link",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 55.8K bytes - Viewed (0) -
src/syscall/zerrors_aix_ppc64.go
39: "level 3 halted", 40: "level 3 reset", 41: "link number out of range", 42: "protocol driver not attached", 43: "no CSI structure available", 44: "level 2 halted", 45: "deadlock condition if locked", 46: "device not ready", 47: "write-protected media", 48: "unformatted or incompatible media", 49: "no locks available", 50: "cannot Establish Connection",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 16:18:12 UTC 2019 - 47.2K bytes - Viewed (0) -
src/runtime/export_test.go
// "runtime.blockOnSystemStackInternal". func BlockOnSystemStack() { systemstack(blockOnSystemStackInternal) } func blockOnSystemStackInternal() { print("x\n") lock(&deadlock) lock(&deadlock) } type RWMutex struct { rw rwmutex } func (rw *RWMutex) Init() { rw.rw.init(lockRankTestR, lockRankTestRInternal, lockRankTestW) } func (rw *RWMutex) RLock() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0) -
tests/integration/README.md
will exit before the parallel children are executed. It should be noted that if the parent test is prevented from exiting (e.g. parent test is waiting for something to occur within the child test), the test will deadlock. Consider the following example: ```go func TestMyLogic(t *testing.T) { framework.NewTest(t). Run(func(ctx framework.TestContext) { ctx.NewSubTest("T1").
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 09 19:04:51 UTC 2024 - 20.9K bytes - Viewed (0)