-- |
-- Module:     Data.Vector.Algorithms.Quicksort.Predefined.VPairParallelStrategiesMedian3IO
-- Copyright:  (c) Sergey Vinokurov 2023
-- License:    Apache-2.0 (see LICENSE)
-- Maintainer: serg.foo@gmail.com

module Data.Vector.Algorithms.Quicksort.Predefined.VPairParallelStrategiesMedian3IO
  ( sortVPairParallelStrategiesMedian3IO
  ) where

import Control.Monad.ST
import Data.Int
import Data.Vector qualified as V

import Data.Vector.Algorithms.Quicksort.Parameterised

import Data.Vector.Algorithms.Quicksort.Predefined.Pair
import Data.Vector.Algorithms.Quicksort.Predefined.VPairSequentialMedian3IO ()

{-# NOINLINE sortVPairParallelStrategiesMedian3IO #-}
sortVPairParallelStrategiesMedian3IO :: V.MVector RealWorld (TestPair Int32 Int32) -> IO ()
sortVPairParallelStrategiesMedian3IO :: MVector RealWorld (TestPair Int32 Int32) -> IO ()
sortVPairParallelStrategiesMedian3IO = ParStrategies
-> Median3 (TestPair Int32 Int32)
-> MVector (PrimState IO) (TestPair Int32 Int32)
-> IO ()
forall p med x (m :: * -> *) a (v :: * -> * -> *).
(Fork2 p x m, Median med a m (PrimState m), PrimMonad m, Ord a,
 MVector v a) =>
p -> med -> v (PrimState m) a -> m ()
sortInplaceFM ParStrategies
defaultParStrategies (forall a. Median3 a
forall {k} (a :: k). Median3 a
Median3 @(TestPair Int32 Int32))