groovyx.gpars.extra166y
[Java] Class PAS.FJSubSorter
java.lang.Object
   jsr166y.RecursiveAction
jsr166y.RecursiveAction
       groovyx.gpars.extra166y.PAS.FJSubSorter
groovyx.gpars.extra166y.PAS.FJSubSorter
static final class PAS.FJSubSorter
extends RecursiveAction
 Performs merging for FJSorter. If big enough, splits Left
 partition in half; finds the greatest point in Right partition
 less than the beginning of the second half of Left via binary
 search; and then, in parallel, merges left half of Left with
 elements of Right up to split point, and merges right half of
 Left with elements of R past split point. At leaf, it just
 sequentially merges. This is all messy to code; sadly we need
 six versions.
     
    
     
    
     
    
     
    
    
        left
        final RecursiveAction left
        
        - 
        
        
    
        merger
        final RecursiveAction merger
        
        - 
        
        
    
        right
        final RecursiveAction right
        
        - 
        
        
    
     
    
    
        
        PAS.FJSubSorter
        PAS.FJSubSorter(RecursiveAction left, RecursiveAction right, RecursiveAction merger)
        
        - 
        
        
    
     
    
    
        
        compute
        public void compute()
        
        - 
        
        
    
     
Copyright © 2008–2013  Václav Pech.  All Rights Reserved.