IrisLFScheduler

IrisLFScheduler — A lock-free scheduler

Synopsis

#define             IRIS_LFSCHEDULER_CONST              (obj)
                    IrisLFScheduler;
IrisScheduler*      iris_lfscheduler_new                (void);
IrisScheduler*      iris_lfscheduler_new_full           (guint min_threads,
                                                         guint max_threads);

Object Hierarchy

  GObject
   +----IrisScheduler
         +----IrisLFScheduler

Description

IrisLFScheduler is a lock-free scheduler implementation. Don't be fooled, lock-free is rarely the right choice. This scheduler will cause your system to spin cpu's while trying to perform a work-load as fast as possible.

Details

IRIS_LFSCHEDULER_CONST()

#define             IRIS_LFSCHEDULER_CONST(obj)

obj :


IrisLFScheduler

typedef struct _IrisLFScheduler IrisLFScheduler;


iris_lfscheduler_new ()

IrisScheduler*      iris_lfscheduler_new                (void);

Creates a new instance of IrisLFScheduler.

Returns :

the newly created IrisLFScheduler instance.

iris_lfscheduler_new_full ()

IrisScheduler*      iris_lfscheduler_new_full           (guint min_threads,
                                                         guint max_threads);

Creates a new instance of IrisLFScheduler.

min_threads :

A guint containing the minimum number of threads

max_threads :

A guint containing the maximum number of threads

Returns :

the newly created IrisLFScheduler instance.