github.com/loov/combiner@v0.1.0/extcombiner/all.go (about)

     1  package extcombiner
     2  
     3  import "github.com/loov/combiner/testsuite"
     4  
     5  // All contains all combiner queue descriptions
     6  var All = testsuite.Descs{
     7  	{"Mutex", false, func(bat testsuite.Batcher, bound int) testsuite.Combiner {
     8  		return NewMutex(bat)
     9  	}},
    10  	// {"SpinMutex", false, func(bat testsuite.Batcher, bound int) testsuite.Combiner {
    11  	// return NewSpinMutex(bat) }},
    12  	{"BasicSpinning", false, func(bat testsuite.Batcher, bound int) testsuite.Combiner {
    13  		return NewBasicSpinning(bat)
    14  	}},
    15  	{"BasicSpinningUintptr", false, func(bat testsuite.Batcher, bound int) testsuite.Combiner {
    16  		return NewBasicSpinningUintptr(bat)
    17  	}},
    18  	{"BasicParking", false, func(bat testsuite.Batcher, bound int) testsuite.Combiner {
    19  		return NewBasicParking(bat)
    20  	}},
    21  	{"BasicParkingUintptr", false, func(bat testsuite.Batcher, bound int) testsuite.Combiner {
    22  		return NewBasicParkingUintptr(bat)
    23  	}},
    24  	{"BoundedSpinning", true, func(bat testsuite.Batcher, bound int) testsuite.Combiner {
    25  		return NewBoundedSpinning(bat, bound)
    26  	}},
    27  	{"BoundedSpinningUintptr", true, func(bat testsuite.Batcher, bound int) testsuite.Combiner {
    28  
    29  		return NewBoundedSpinningUintptr(bat, bound)
    30  	}},
    31  	{"BoundedParking", true, func(bat testsuite.Batcher, bound int) testsuite.Combiner {
    32  		return NewBoundedParking(bat, bound)
    33  	}},
    34  	{"BoundedParkingUintptr", true, func(bat testsuite.Batcher, bound int) testsuite.Combiner {
    35  		return NewBoundedParkingUintptr(bat, bound)
    36  	}},
    37  }