Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 3,232 for ctan (0.18 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/Platform.java

    1. package com.google.common.collect.testing;
    2.  
    3. import com.google.common.annotations.GwtCompatible;
    4. import java.util.Locale;
    5.  
    6. /**
    7. * Methods factored out so that they can be emulated differently in GWT.
    8. *
    9. * <p>This class is emulated in GWT.
    10. *
    11. * @author Hayward Chan
    12. */
    13. @GwtCompatible
    14. final class Platform {
    15. static <T> T[] clone(T[] array) {
    16. return array.clone();
    17. }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Aug 04 01:39:13 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  2. internal/store/batch.go

    1. var ErrBatchFull = errors.New("batch is full")
    2.  
    3. const defaultCommitTimeout = 30 * time.Second
    4.  
    5. // Batch represents an ordered batch
    6. type Batch[I any] struct {
    7. items []I
    8. limit uint32
    9. store Store[I]
    10. quitCh chan struct{}
    11.  
    12. sync.Mutex
    13. }
    14.  
    15. // BatchConfig represents the batch config
    16. type BatchConfig[I any] struct {
    17. Limit uint32
    18. Store Store[I]
    19. CommitTimeout time.Duration
    20. Log logger
    21. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. internal/s3select/json/preader.go

    1. input chan *queueItem // input for workers
    2. queue chan *queueItem // output from workers in order
    3. err error // global error state, only touched by Reader.Read
    4. bufferPool sync.Pool // pool of []byte objects for input
    5. kvDstPool sync.Pool // pool of []jstream.KV used for output
    6. close chan struct{} // used for shutting down the splitter before end of stream
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. cmd/background-heal-ops.go

    1. opts madmin.HealOpts
    2. // Healing response will be sent here
    3. respCh chan healResult
    4. }
    5.  
    6. // healResult represents a healing result with a possible error
    7. type healResult struct {
    8. result madmin.HealResultItem
    9. err error
    10. }
    11.  
    12. // healRoutine receives heal tasks, to heal buckets, objects and format.json
    13. type healRoutine struct {
    14. tasks chan healTask
    15. workers int
    16. }
    17.  
    18. func activeListeners() int {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. internal/s3select/csv/reader.go

    1. input chan *queueItem // input for workers
    2. queue chan *queueItem // output from workers in order
    3. err error // global error state, only touched by Reader.Read
    4. bufferPool sync.Pool // pool of []byte objects for input
    5. csvDstPool sync.Pool // pool of [][]string used for output
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. internal/bpool/bpool.go

    1. package bpool
    2.  
    3. import (
    4. "github.com/klauspost/reedsolomon"
    5. )
    6.  
    7. // BytePoolCap implements a leaky pool of []byte in the form of a bounded channel.
    8. type BytePoolCap struct {
    9. c chan []byte
    10. w int
    11. wcap int
    12. }
    13.  
    14. // NewBytePoolCap creates a new BytePool bounded to the given maxSize, with new
    15. // byte arrays sized based on width.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 29 01:40:52 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. cmd/listen-notification-handlers.go

    1. // Use buffered channel to take care of burst sends or slow w.Write()
    2. mergeCh := make(chan []byte, globalAPIConfig.getRequestsPoolCapacity()*len(globalEndpoints.Hostnames()))
    3. localCh := make(chan event.Event, globalAPIConfig.getRequestsPoolCapacity())
    4.  
    5. // Convert local messages to JSON and send to mergeCh
    6. go func() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. cmd/untar.go

    1. case formatLZ4:
    2. r = lz4.NewReader(bf)
    3. case formatUnknown:
    4. r = bf
    5. default:
    6. return fmt.Errorf("Unsupported format %s", f)
    7. }
    8. tarReader := tar.NewReader(r)
    9. n := 0
    10. asyncWriters := make(chan struct{}, 16)
    11. var wg sync.WaitGroup
    12.  
    13. var asyncErr error
    14. var asyncErrMu sync.Mutex
    15. for {
    16. if !o.ignoreErrs {
    17. asyncErrMu.Lock()
    18. err := asyncErr
    19. asyncErrMu.Unlock()
    20. if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 6K bytes
    - Viewed (2)
  9. cmd/notification.go

    1. }
    2. consolidatedReport.BucketStats[opts] = d
    3. }
    4. }
    5. return consolidatedReport
    6. }
    7.  
    8. func (sys *NotificationSys) collectPeerMetrics(ctx context.Context, peerChannels []<-chan MetricV2, g *errgroup.Group) <-chan MetricV2 {
    9. ch := make(chan MetricV2)
    10. var wg sync.WaitGroup
    11. for index, err := range g.Wait() {
    12. if err != nil {
    13. if sys.peerClients[index] != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  10. internal/dsync/dsync_test.go

    1. // Borrowed from mutex_test.go
    2. func HammerMutex(m *DRWMutex, loops int, cdone chan bool) {
    3. for i := 0; i < loops; i++ {
    4. m.Lock(id, source)
    5. m.Unlock(context.Background())
    6. }
    7. cdone <- true
    8. }
    9.  
    10. // Borrowed from mutex_test.go
    11. func TestMutex(t *testing.T) {
    12. loops := 200
    13. if testing.Short() {
    14. loops = 5
    15. }
    16. c := make(chan bool)
    17. m := NewDRWMutex(ds, "test")
    18. for i := 0; i < 10; i++ {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 14:35:19 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top