Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestConcurrentClear (0.11 sec)

  1. src/sync/map_test.go

    		})
    	})
    	if allocs > 0 {
    		t.Errorf("AllocsPerRun of m.Range = %v; want 0", allocs)
    	}
    }
    
    // TestConcurrentClear tests concurrent behavior of sync.Map properties to ensure no data races.
    // Checks for proper synchronization between Clear, Store, Load operations.
    func TestConcurrentClear(t *testing.T) {
    	var m sync.Map
    
    	wg := sync.WaitGroup{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top