- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for mtx (0.02 sec)
-
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)