- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 2,966 for Msync (0.07 sec)
-
internal/dsync/drwmutex.go
} func (g *Granted) isLocked() bool { return isLocked(g.lockUID) } func isLocked(uid string) bool { return len(uid) > 0 } // NewDRWMutex - initializes a new dsync RW mutex. func NewDRWMutex(clnt *Dsync, names ...string) *DRWMutex { restClnts, _ := clnt.GetLockers() sort.Strings(names) return &DRWMutex{ writeLocks: make([]string, len(restClnts)),
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 19.7K bytes - Viewed (0) -
src/runtime/chanbarrier_test.go
package runtime_test import ( "runtime" "sync" "testing" ) type response struct { } type myError struct { } func (myError) Error() string { return "" } func doRequest(useSelect bool) (*response, error) { type async struct { resp *response err error } ch := make(chan *async, 0) done := make(chan struct{}, 0) if useSelect { go func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 17:50:18 UTC 2024 - 1.4K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_ppc64x.s
TEXT ·Load(SB),NOSPLIT|NOFRAME,$-8-12 MOVD ptr+0(FP), R3 SYNC MOVWZ 0(R3), R3 CMPW R3, R3, CR7 BC 4, 30, 1(PC) // bne- cr7,0x4 ISYNC MOVW R3, ret+8(FP) RET // uint8 ·Load8(uint8 volatile* ptr) TEXT ·Load8(SB),NOSPLIT|NOFRAME,$-8-9 MOVD ptr+0(FP), R3 SYNC MOVBZ 0(R3), R3 CMP R3, R3, CR7 BC 4, 30, 1(PC) // bne- cr7,0x4 ISYNC MOVB R3, ret+8(FP) RET
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 7.5K bytes - Viewed (0) -
cmd/lock-rest-server-common_test.go
lockRequesterInfo2, } lri := locker.ll.lockMap["name"] // test unknown uid if locker.ll.removeEntry("name", dsync.LockArgs{ Owner: "owner", UID: "unknown-uid", }, &lri) { t.Errorf("Expected %#v, got %#v", false, true) } if !locker.ll.removeEntry("name", dsync.LockArgs{ Owner: "owner", UID: "0123-4567", }, &lri) { t.Errorf("Expected %#v, got %#v", true, false) } else {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Mar 23 17:26:21 UTC 2023 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/audit/buffered/buffered_test.go
close(delegatedCallEndCh) <-shutdownEndCh } func TestDelegateProcessEvents(t *testing.T) { for _, async := range []bool{true, false} { t.Run(fmt.Sprintf("async:%t", async), func(t *testing.T) { config := testBatchConfig() config.AsyncDelegate = async wg := sync.WaitGroup{} delegate := &fake.Backend{ OnRequest: func(events []*auditinternal.Event) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 14 17:20:35 UTC 2018 - 5.9K bytes - Viewed (0) -
ci/official/upload.sh
# "/path/bar". This script uses "gsutil rsync" instead, which acts on directory # contents. About arguments to gsutil: # "gsutil -m rsync" runs in parallel. # "gsutil rsync -r" is recursive and makes directories work. # "gsutil rsync -d" is "sync and delete files from destination if not present in source" DOWNLOADS="$(mktemp -d)" mkdir -p "$DOWNLOADS" gsutil -m rsync -r "$TFCI_ARTIFACT_STAGING_GCS_URI" "$DOWNLOADS"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 24 20:52:12 UTC 2024 - 2.8K bytes - Viewed (0) -
test/fixedbugs/issue11656.dir/asm_ppc64le.s
// license that can be found in the LICENSE file. #include "textflag.h" // func syncIcache(p uintptr) TEXT main·syncIcache(SB), NOSPLIT|NOFRAME, $0-0 SYNC MOVD (R3), R3 ICBI (R3) ISYNC
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 11 15:28:40 UTC 2022 - 306 bytes - Viewed (0) -
internal/event/targetlist.go
eventsSkipped atomic.Int64 eventsErrorsTotal atomic.Int64 sync.RWMutex targets map[TargetID]Target queue chan asyncEvent ctx context.Context statLock sync.RWMutex targetStats map[TargetID]targetStat } type targetStat struct { // The number of concurrent async Send calls per targets currentSendCalls int64 // The number of total events per target totalEvents int64
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 9.2K bytes - Viewed (0) -
pkg/util/async/runner_test.go
See the License for the specific language governing permissions and limitations under the License. */ package async import ( "fmt" "sync" "testing" ) func TestRunner(t *testing.T) { var ( lock sync.Mutex events []string funcs []func(chan struct{}) ) done := make(chan struct{}, 20) for i := 0; i < 10; i++ { iCopy := i
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 29 06:37:00 UTC 2016 - 1.2K bytes - Viewed (0) -
internal/dsync/locked_rand.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package dsync import ( "math/rand" "sync" ) // lockedRandSource provides protected rand source, implements rand.Source interface. type lockedRandSource struct { lk sync.Mutex src rand.Source } // Int63 returns a non-negative pseudo-random 63-bit integer as an int64.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Oct 18 15:39:59 UTC 2021 - 1.3K bytes - Viewed (0)