Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMutexCloseUnblock (0.16 sec)

  1. src/internal/poll/fd_mutex_test.go

    		t.Fatal("broken")
    	}
    	if mu.RWLock(true) {
    		t.Fatal("broken")
    	}
    	if mu.RWLock(false) {
    		t.Fatal("broken")
    	}
    	if mu.IncrefAndClose() {
    		t.Fatal("broken")
    	}
    }
    
    func TestMutexCloseUnblock(t *testing.T) {
    	c := make(chan bool, 4)
    	var mu XFDMutex
    	mu.RWLock(true)
    	for i := 0; i < 4; i++ {
    		go func() {
    			if mu.RWLock(true) {
    				t.Error("broken")
    				return
    			}
    			c <- true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 08 03:57:40 UTC 2022
    - 4K bytes
    - Viewed (0)
Back to top