Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 595 for lockedm (0.46 sec)

  1. android/guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        ReentrantLock lockD = otherFactory.newReentrantLock("LockD");
    
        // lockA -> lockD
        lockA.lock();
        lockD.lock();
        lockA.unlock();
        lockD.unlock();
    
        // lockD -> lockA should fail even though lockD is from a different factory.
        lockD.lock();
        PotentialDeadlockException expected =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        ReentrantLock lockD = otherFactory.newReentrantLock("LockD");
    
        // lockA -> lockD
        lockA.lock();
        lockD.lock();
        lockA.unlock();
        lockD.unlock();
    
        // lockD -> lockA should fail even though lockD is from a different factory.
        lockD.lock();
        PotentialDeadlockException expected =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  3. src/runtime/time.go

    	if !t.isChan || t.blocked == 0 {
    		badTimer()
    	}
    	t.blocked--
    	if t.blocked == 0 && t.state&timerHeaped != 0 && t.state&timerZombie == 0 {
    		// Last goroutine that was blocked on this timer.
    		// Mark for removal from heap but do not clear t.when,
    		// so that we know what time it is still meant to trigger.
    		t.state |= timerZombie
    		t.ts.zombies.Add(1)
    	}
    	t.unlock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  4. src/crypto/tls/quic.go

    	defer c.handshakeMutex.Lock()
    	// Send on blockedc to notify the QUICConn that the handshake is blocked.
    	// Exported methods of QUICConn wait for the handshake to become blocked
    	// before returning to the user.
    	select {
    	case c.quic.blockedc <- struct{}{}:
    	case <-c.quic.cancelc:
    		return c.sendAlertLocked(alertCloseNotify)
    	}
    	// The QUICConn reads from signalc to notify us that the handshake may
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultFileLockManager.java

                                    lastPingTime = backoff.getTimer().getElapsedMillis();
                                    LOGGER.debug("The file lock for {} is held by a different Gradle process (pid: {}, lockId: {}). Pinged owner at port {}", displayName, lockInfo.pid, lockInfo.lockId, lockInfo.port);
                                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:32 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  6. src/sync/rwmutex.go

    		race.Acquire(unsafe.Pointer(&rw.writerSem))
    	}
    	return true
    }
    
    // Unlock unlocks rw for writing. It is a run-time error if rw is
    // not locked for writing on entry to Unlock.
    //
    // As with Mutexes, a locked [RWMutex] is not associated with a particular
    // goroutine. One goroutine may [RWMutex.RLock] ([RWMutex.Lock]) a RWMutex and then
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. src/cmd/go/internal/lockedfile/lockedfile_test.go

    	})
    
    	// Wait until process Q has either failed or locked file B.
    	// Otherwise, P.2 might not block on file B as intended.
    locked:
    	for {
    		if _, err := os.Stat(filepath.Join(dir, "locked")); !os.IsNotExist(err) {
    			break locked
    		}
    		timer := time.NewTimer(1 * time.Millisecond)
    		select {
    		case <-qDone:
    			timer.Stop()
    			break locked
    		case <-timer.C:
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  8. cmd/namespace-lock.go

    	}
    	nsLk.ref++
    	n.lockMap[resource] = nsLk
    	n.lockMapMutex.Unlock()
    
    	// Locking here will block (until timeout).
    	if readLock {
    		locked = nsLk.GetRLock(ctx, opsID, lockSource, timeout)
    	} else {
    		locked = nsLk.GetLock(ctx, opsID, lockSource, timeout)
    	}
    
    	if !locked { // We failed to get the lock
    		// Decrement ref count since we failed to get the lock
    		n.lockMapMutex.Lock()
    		n.lockMap[resource].ref--
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 05 23:56:35 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  9. src/cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go

    	// returned when “the lock is blocked by a lock from another process”.
    	// If that process is blocked on some lock that we are holding, then the
    	// resulting livelock is due to a real deadlock (and would manifest as such
    	// when using, for example, the flock implementation of this package).
    	// If the other process is *not* blocked on some other lock that we are
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  10. internal/grid/muxserver.go

    	default:
    		atomic.StoreInt64(&m.LastPing, time.Now().Unix())
    		return pongMsg{}
    	}
    }
    
    // disconnect will disconnect the mux.
    // m.recvMu must be locked when calling this function.
    func (m *muxServer) disconnect(msg string, locked bool) {
    	if debugPrint {
    		fmt.Println("Mux", m.ID, "disconnecting. Reason:", msg)
    	}
    	if msg != "" {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top