sched.h - Online Linux Manual PageSection : 3
Updated : Mon Jan 25 2021
Source : Version 4.0.0
Note : Coin
NAMEsched.h
SYNOPSIS
#include <Inventor/C/basic.h>
#include <Inventor/C/threads/common.h>
Typedefstypedef void cc_sched_f(void *closure)
Functionscc_sched * cc_sched_construct (int numthreads)
void cc_sched_destruct (cc_sched *sched)
void cc_sched_set_num_threads (cc_sched *sched, int num)
int cc_sched_get_num_threads (cc_sched *sched)
uint32_t cc_sched_schedule (cc_sched *sched, cc_sched_f *workfunc, void *closure, float priority)
SbBool cc_sched_unschedule (cc_sched *sched, uint32_t schedid)
void cc_sched_wait_all (cc_sched *sched)
int cc_sched_get_num_remaining (cc_sched *sched)
void cc_sched_set_num_allowed (cc_sched *sched, int num)
void cc_sched_change_priority (cc_sched *sched, uint32_t schedid, float priority)
Typedef Documentation
void cc_sched_fThe type definition for the work function called when a thread becomes available.
Function Documentation
cc_sched* cc_sched_construct (int numthreads)Construct a scheduler that uses numthreads threads.
void cc_sched_destruct (cc_sched * sched)Destruct the scheduler. This method will block until all currently executing jobs have finished. Any remaining scheduled jobs will be cancelled. Note that this differs from Coin-2. To emulate Coin-2 behavior, call cc_sched_wait_all() before calling this method.
void cc_sched_set_num_threads (cc_sched * sched, int num)Set/change the number of threads used by the scheduler.
int cc_sched_get_num_threads (cc_sched * sched)Returns the number of threads used by the scheduler.
uint32_t cc_sched_schedule (cc_sched * sched, cc_sched_f * workfunc, void * closure, float priority)Schedule a new job. A thread calls workfunc with the closure argument when a thread becomes available. larger priority values will be scheduled first. Returns a schedid that can be used to unschedule the job. schedid is guaranteed to be != 0. Note that jobs are automatically unscheduled when triggered, just before calling the work function.
SbBool cc_sched_unschedule (cc_sched * sched, uint32_t schedid)Attempt to unschedule a job. schedid must be an id returned from cc_sched_schedule(). Note that jobs are automatically unscheduled when triggered, just before calling the work function. Returns TRUE if job was successfully removed, FALSE if job wasn't found in the internal dict.
void cc_sched_wait_all (cc_sched * sched)Wait for all scheduled jobs to finish.
int cc_sched_get_num_remaining (cc_sched * sched)Returns the number of remaining scheduled jobs, not counting jobs that are currently being executed (i.e. are in their workfuncs).
void cc_sched_set_num_allowed (cc_sched * sched, int num)Sets the number of allowed jobs per 'batch'. The scheduler will execute at max the num jobs. To continue executing jobs, call this function again. This is typically done to limit the number of I/O or CPU intensive jobs to a few per frame to avoid starving the main thread. If num is -1 (the default), the number of jobs per batch is not limited.
void cc_sched_change_priority (cc_sched * sched, uint32_t schedid, float priority)Changes the priority of the given scheduled item.
AuthorGenerated automatically by Doxygen for Coin from the source code. 0
Johanes Gumabo
Data Size : 15,123 byte
man-sched.h.3coin4Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 189,675
Visitor ID : :
Visitor IP : 3.15.10.104 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.