- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for mtx (0.05 sec)
-
src/runtime/netpoll_wasip1.go
} } func netpollclose(fd uintptr) int32 { lock(&mtx) for i := 0; i < len(pds); i++ { if pds[i].fd == fd { netpolldisarm(pds[i], 'r'+'w') pds[i] = pds[len(pds)-1] pds = pds[:len(pds)-1] break } } unlock(&mtx) return 0 } func netpollBreak() {} func netpoll(delay int64) (gList, int32) { lock(&mtx)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 6.1K bytes - Viewed (0) -
src/runtime/race/testdata/chan_test.go
func TestNoRaceChanMutex(t *testing.T) { done := make(chan struct{}) mtx := make(chan struct{}, 1) data := 0 _ = data go func() { mtx <- struct{}{} data = 42 <-mtx done <- struct{}{} }() mtx <- struct{}{} data = 43 <-mtx <-done } func TestNoRaceSelectMutex(t *testing.T) { done := make(chan struct{}) mtx := make(chan struct{}, 1) aux := make(chan bool) data := 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 19:55:29 UTC 2023 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc
StringAttr InsertToSymbolTable(Operation& module, Operation& function, const StringRef func_name) { static tensorflow::mutex* mtx = new tensorflow::mutex(); tensorflow::mutex_lock lock(*mtx); SymbolTable symbol_table(&module); std::string unique_name = func_name.str(); int32_t uniquing_counter = 0; while (symbol_table.lookup(unique_name) != nullptr) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.8K bytes - Viewed (0)