Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,714 for pdone (0.08 sec)

  1. src/image/png/reader_test.go

    			t.Error(fn, err)
    			continue
    		}
    		defer sf.Close()
    		sb := bufio.NewScanner(sf)
    
    		// Compare the two, in SNG format, line by line.
    		for {
    			pdone := !pb.Scan()
    			sdone := !sb.Scan()
    			if pdone && sdone {
    				break
    			}
    			if pdone || sdone {
    				t.Errorf("%s: Different sizes", fn)
    				break
    			}
    			ps := pb.Text()
    			ss := sb.Text()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 24 12:12:12 UTC 2022
    - 28.5K bytes
    - Viewed (0)
  2. src/context/context.go

    	// The close of the Done channel may happen asynchronously,
    	// after the cancel function returns.
    	//
    	// WithCancel arranges for Done to be closed when cancel is called;
    	// WithDeadline arranges for Done to be closed when the deadline
    	// expires; WithTimeout arranges for Done to be closed when the timeout
    	// elapses.
    	//
    	// Done is provided for use in select statements:
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/AbstractBasicGroupedTaskLoggingFunctionalTest.groovy

                assert result.groupedOutput.task(':2:log').output == "Error from 2\nOutput from 2\nDone with 2\nDone with 2"
                assert result.groupedOutput.task(':3:log').output == "Error from 3\nOutput from 3\nDone with 3\nDone with 3"
            } else {
                assert result.groupedOutput.task(':1:log').output == "Output from 1\nDone with 1"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  4. src/cmd/go/internal/lockedfile/lockedfile_test.go

    	probablyStillBlocked = 10 * time.Second
    )
    
    func mustBlock(t *testing.T, desc string, f func()) (wait func(*testing.T)) {
    	t.Helper()
    
    	done := make(chan struct{})
    	go func() {
    		f()
    		close(done)
    	}()
    
    	timer := time.NewTimer(quiescent)
    	defer timer.Stop()
    	select {
    	case <-done:
    		t.Fatalf("%s unexpectedly did not block", desc)
    	case <-timer.C:
    	}
    
    	return func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  5. src/runtime/rwmutex_test.go

    	}
    	go writer(&rwm, num_iterations, &activity, cdone)
    	for ; i < numReaders; i++ {
    		go reader(&rwm, num_iterations, &activity, cdone)
    	}
    	// Wait for the 2 writers and all readers to finish.
    	for i := 0; i < 2+numReaders; i++ {
    		<-cdone
    	}
    }
    
    func TestRWMutex(t *testing.T) {
    	defer GOMAXPROCS(GOMAXPROCS(-1))
    	n := 1000
    	if testing.Short() {
    		n = 5
    	}
    	HammerRWMutex(1, 1, n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 22:00:45 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. src/sync/mutex_test.go

    			mu.Unlock()
    			select {
    			case <-stop:
    				return
    			default:
    			}
    		}
    	}()
    	done := make(chan bool, 1)
    	go func() {
    		for i := 0; i < 10; i++ {
    			time.Sleep(100 * time.Microsecond)
    			mu.Lock()
    			mu.Unlock()
    		}
    		done <- true
    	}()
    	select {
    	case <-done:
    	case <-time.After(10 * time.Second):
    		t.Fatalf("can't acquire Mutex in 10 seconds")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 16 21:25:35 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  7. docs/features/caching.md

    Deleting the cache when it is no longer needed can be done.  However this may delete the purpose of the cache
    which is designed to persist between app restarts.
    
    ```kotlin
    cache.delete()
    ```
     
    ## Pruning the Cache
    
    Pruning the entire Cache to clear space temporarily can be done using evictAll.
    
    ```kotlin
    cache.evictAll()
    ```
    
    Removing individual items can be done using the urls iterator.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  8. src/sync/atomic/doc.go

    func LoadUint32(addr *uint32) (val uint32)
    
    // LoadUint64 atomically loads *addr.
    // Consider using the more ergonomic and less error-prone [Uint64.Load] instead
    // (particularly if you target 32-bit platforms; see the bugs section).
    func LoadUint64(addr *uint64) (val uint64)
    
    // LoadUintptr atomically loads *addr.
    // Consider using the more ergonomic and less error-prone [Uintptr.Load] instead.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  9. internal/dsync/dsync_test.go

    		t.Fatal("Unlock timed out, which should not happen")
    	case <-timer.C:
    	}
    }
    
    // Borrowed from mutex_test.go
    func HammerMutex(m *DRWMutex, loops int, cdone chan bool) {
    	for i := 0; i < loops; i++ {
    		m.Lock(id, source)
    		m.Unlock(context.Background())
    	}
    	cdone <- true
    }
    
    // Borrowed from mutex_test.go
    func TestMutex(t *testing.T) {
    	loops := 200
    	if testing.Short() {
    		loops = 5
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 24 03:49:07 UTC 2022
    - 11K bytes
    - Viewed (0)
  10. src/runtime/traceevent.go

    	// STW.
    	traceEvSTWBegin // STW start [timestamp, kind]
    	traceEvSTWEnd   // STW done [timestamp]
    
    	// GC events.
    	traceEvGCActive           // GC active [timestamp, seq]
    	traceEvGCBegin            // GC start [timestamp, seq, stack ID]
    	traceEvGCEnd              // GC done [timestamp, seq]
    	traceEvGCSweepActive      // GC sweep active [timestamp, P ID]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top