pure-borrow
Safe HaskellNone
LanguageGHC2021

Control.Concurrent.DivideConquer.Linear

Contents

Synopsis

Documentation

divideAndConquer Source #

Arguments

:: forall (α :: Lifetime) (β :: Lifetime) (t :: Type -> Type) a. (Traversable t, Consumable (t ()), α >= β) 
=> Int

The # of workers.

-> DivideConquer α t a 
-> Mut α a 
-> BO β (Mut α a) 

data DivideConquer (α :: Lifetime) (t :: Type -> Type) a Source #

Constructors

DivideConquer 

Fields

Examples

qsortDC Source #

Arguments

:: forall a (α :: Lifetime) (β :: Lifetime). (Ord a, Copyable a, α >= β) 
=> Int

The # of workers.

-> Int

Threshold for the length of vector to switch to sequential sort.

-> Mut α (Vector a) 
-> BO β (Mut α (Vector a))