/*
 * Class method: use_threads(state)
 * state: a boolean state.
 *
 * Instructs the core to turn on/off threading. 
 *
 * When threading is turned off, all thread operations such as 
 * mutexes and conditionals are turned into NOPs. 
 * Use this if you want absolute minimal overhead and you don't 
 * use any threads in the pipeline.
 *
 * Returns: the provided boolean value.
 */
static VALUE
rb_gst_use_threads (VALUE self, VALUE value)
{
    gst_use_threads (RVAL2CBOOL (value));
    return value;
}