- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,074 for Unlock1 (0.1 sec)
-
guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java
* * <ul> * <li>for an unnested {@code lock()} and {@code unlock()}, a cycle detecting lock takes 38ns as * opposed to the 24ns taken by a plain lock. * <li>for nested locking, the cost increases with the depth of the nesting: * <ul> * <li>2 levels: average of 64ns per lock()/unlock() * <li>3 levels: average of 77ns per lock()/unlock() * <li>4 levels: average of 99ns per lock()/unlock()
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Dec 15 19:31:54 UTC 2023 - 35.9K bytes - Viewed (0) -
src/runtime/time.go
func (t *timer) lock() { lock(&t.mu) t.trace("lock") } // unlock updates t.astate and unlocks the timer. func (t *timer) unlock() { t.trace("unlock") // Let heap fast paths know whether heap[i].when is accurate. // Also let maybeRunChan know whether channel is in heap. t.astate.Store(t.state) unlock(&t.mu) } // hchan returns the channel in t.arg. // t must be a timer with a channel.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 14:36:24 UTC 2024 - 37.5K bytes - Viewed (0) -
src/runtime/lock_js.go
throw("self deadlock") } gp := getg() if gp.m.locks < 0 { throw("lock count") } gp.m.locks++ l.key = mutex_locked } func unlock(l *mutex) { unlockWithRank(l) } func unlock2(l *mutex) { if l.key == mutex_unlocked { throw("unlock of unlocked lock") } gp := getg() gp.m.locks-- if gp.m.locks < 0 { throw("lock count") } l.key = mutex_unlocked }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 21:02:20 UTC 2023 - 7.3K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java
* * <ul> * <li>for an unnested {@code lock()} and {@code unlock()}, a cycle detecting lock takes 38ns as * opposed to the 24ns taken by a plain lock. * <li>for nested locking, the cost increases with the depth of the nesting: * <ul> * <li>2 levels: average of 64ns per lock()/unlock() * <li>3 levels: average of 77ns per lock()/unlock() * <li>4 levels: average of 99ns per lock()/unlock()
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Dec 15 19:31:54 UTC 2023 - 35.9K bytes - Viewed (0) -
src/runtime/proc.go
// system stack. // // If unlockf returns false, the goroutine is resumed. // // unlockf must not access this G's stack, as it may be moved between // the call to gopark and the call to unlockf. // // Note that because unlockf is called after putting the G into a waiting // state, the G may have already been readied by the time unlockf is called
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 207.5K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultFileLockManager.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 16:02:32 UTC 2024 - 22.3K bytes - Viewed (0) -
pkg/kubelet/container/testing/fake_runtime.go
f.Lock() defer f.Unlock() return f.assertList(pods, f.StartedPods) } func (f *FakeRuntime) AssertKilledPods(pods []string) bool { f.Lock() defer f.Unlock() return f.assertList(pods, f.KilledPods) } func (f *FakeRuntime) AssertStartedContainers(containers []string) bool { f.Lock() defer f.Unlock() return f.assertList(containers, f.StartedContainers) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 14 00:23:50 UTC 2024 - 13.9K bytes - Viewed (0) -
pkg/kubelet/cm/fake_pod_container_manager.go
m.Lock() defer m.Unlock() m.Cgroups[pod.ID] = []string{pod.Name} } func (m *FakePodContainerManager) Exists(_ *v1.Pod) bool { m.Lock() defer m.Unlock() m.CalledFunctions = append(m.CalledFunctions, "Exists") return true } func (m *FakePodContainerManager) EnsureExists(_ *v1.Pod) error { m.Lock() defer m.Unlock() m.CalledFunctions = append(m.CalledFunctions, "EnsureExists")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 24 18:21:21 UTC 2023 - 3.4K bytes - Viewed (0) -
internal/dsync/dsync_test.go
dm.Unlock(context.Background()) } func TestSimpleLockUnlockMultipleTimes(t *testing.T) { dm := NewDRWMutex(ds, "test") dm.Lock(id, source) time.Sleep(time.Duration(10+(rand.Float32()*50)) * time.Millisecond) dm.Unlock(context.Background()) dm.Lock(id, source) time.Sleep(time.Duration(10+(rand.Float32()*50)) * time.Millisecond) dm.Unlock(context.Background()) dm.Lock(id, source)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Dec 24 03:49:07 UTC 2022 - 11K bytes - Viewed (0) -
src/runtime/race/testdata/mutex_test.go
go func() { mu.Lock() defer mu.Unlock() x = 1 ch <- true }() go func() { mu.Lock() x = 2 mu.Unlock() ch <- true }() <-ch <-ch } func TestRaceMutex(t *testing.T) { var mu sync.Mutex var x int16 = 0 _ = x ch := make(chan bool, 2) go func() { x = 1 mu.Lock() defer mu.Unlock() ch <- true }() go func() { x = 2
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 23 22:14:38 UTC 2021 - 2K bytes - Viewed (0)