- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 25 for rwmutex (0.27 sec)
-
src/net/http/transport_test.go
c.set.remove(c) return c.Conn.Close() } // testConnSet tracks a set of TCP connections and whether they've // been closed. type testConnSet struct { t *testing.T mu sync.Mutex // guards closed and list closed map[net.Conn]bool list []net.Conn // in order created } func (tcs *testConnSet) insert(c net.Conn) { tcs.mu.Lock() defer tcs.mu.Unlock() tcs.closed[c] = false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 21:59:21 UTC 2024 - 192.6K bytes - Viewed (0) -
doc/go1.17_spec.html
</p> <pre> // A Mutex is a data type with two methods, Lock and Unlock. type Mutex struct { /* Mutex fields */ } func (m *Mutex) Lock() { /* Lock implementation */ } func (m *Mutex) Unlock() { /* Unlock implementation */ } // NewMutex has the same composition as Mutex but its method set is empty. type NewMutex Mutex
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 211.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
#include "absl/strings/numbers.h" #include "absl/strings/str_cat.h" #include "absl/strings/str_join.h" #include "absl/strings/string_view.h" #include "absl/strings/strip.h" #include "absl/synchronization/mutex.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DenseSet.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/ScopeExit.h" #include "llvm/ADT/SetVector.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0) -
src/cmd/go/alldocs.go
// To profile all memory allocations, use -test.memprofilerate=1. // // -mutexprofile mutex.out // Write a mutex contention profile to the specified file // when all tests are complete. // Writes test binary as -c would. // // -mutexprofilefraction n // Sample 1 in n stack traces of goroutines holding a // contended mutex. // // -outputdir directory
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:54:28 UTC 2024 - 142.4K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_control_test.go
t.Errorf("Expected error: %v, got: %v", tc.expectedErr, err) } }) } } type requestTracker struct { sync.Mutex requests int err error after int // this block should be updated consistently parallelLock sync.Mutex shouldTrackParallelRequests bool parallelRequests int maxParallelRequests int
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 07 19:01:47 UTC 2024 - 108.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go
if r1 == 0 { err = errnoErr(e1) } return } func ReleaseMutex(mutex Handle) (err error) { r1, _, e1 := syscall.Syscall(procReleaseMutex.Addr(), 1, uintptr(mutex), 0, 0) if r1 == 0 { err = errnoErr(e1) } return } func RemoveDirectory(path *uint16) (err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 195.8K bytes - Viewed (0) -
tensorflow/c/c_api.cc
#include "tensorflow/core/lib/gtl/array_slice.h" #include "tensorflow/core/platform/coding.h" #include "tensorflow/core/platform/errors.h" #include "tensorflow/core/platform/mem.h" #include "tensorflow/core/platform/mutex.h" #include "tensorflow/core/platform/protobuf.h" #include "tensorflow/core/platform/status.h" #include "tensorflow/core/platform/str_util.h" #include "tensorflow/core/platform/strcat.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 102.3K bytes - Viewed (0) -
pilot/pkg/networking/core/cluster_builder_test.go
}) cb := NewClusterBuilder(cg.SetupProxy(proxy), &model.PushRequest{Push: cg.PushContext()}, nil) wg := sync.WaitGroup{} wg.Add(5) var actual []*endpoint.LocalityLbEndpoints mu := sync.Mutex{} for i := 0; i < 5; i++ { go func() { eb := endpoints.NewCDSEndpointBuilder( proxy, cb.req.Push, "outbound|8080|v1|foo.com", model.TrafficDirectionOutbound, "v1", "foo.com", 8080,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 110.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go
rest.ValidateAllObjectFunc, &metav1.CreateOptions{}, ); err != nil { t.Errorf("Unexpected error: %v", err) } } ctx, cancel := context.WithCancel(testContext) lock := sync.Mutex{} called := false // We rely on the fact that there is exactly one worker, so it should exit after // getting context canceled error on the first Delete call to etcd.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 101.8K bytes - Viewed (0) -
pkg/controller/daemon/daemon_controller_test.go
Name: name, Labels: label, Namespace: namespace, OwnerReferences: ownerReferences, }, } } type fakePodControl struct { sync.Mutex *controller.FakePodControl podStore cache.Store podIDMap map[string]*v1.Pod expectations controller.ControllerExpectationsInterface } func newFakePodControl() *fakePodControl {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 111.4K bytes - Viewed (0)