pthread_qsort.h File Reference

functions that provide a threaded quick sort More...

#include <stdlib.h>

Go to the source code of this file.

Functions

void pthread_qsort (void *base, const size_t nel, const size_t width, int(*compare)(const void *, const void *), const size_t num_threads)
 sort base in the order specified by the compare function


Detailed Description

functions that provide a threaded quick sort


Function Documentation

void pthread_qsort ( void *  base,
const size_t  nel,
const size_t  width,
int(*)(const void *, const void *)  compare,
const size_t  num_threads 
)

sort base in the order specified by the compare function

Parameters:
base data array
nel number of elements in data array
width size of element in data array
compare compare function for element in data array
num_threads number of threads to use
Warning:
  • default thread attributes used

  • cancellation is disabled


Generated on Tue Apr 24 20:01:36 2007 for libctf by  doxygen 1.5.1