Threading
Object Hierarchy:
Description:
public interface Threading :
Object,
Queue
A structure which spawns threads
All known implementing classes:
Namespace: Bump
Package: bump-0.1
Content:
Methods:
- public
int get_max_threads ()
Get the maximum number of threads to spawn
- public void set_max_threads (
int value)
Set the maximum number of threads to spawn
- public
TimeSpan get_max_idle_time ()
Get the maximum amount of time to allow a thread to remain unused
- public void set_max_idle_time (
TimeSpan value)
Set the maximum amount of time to allow a thread to remain unused
- public
int get_num_threads ()
Total number of threads currently running
- public
int get_idle_threads ()
Number of threads currently waiting for input
- public void increase_max_threads (
int new_max_threads)
Update the max_threads property to the new value if it permits more
threads than the old value.
- protected
bool run_task (SourceFunc func)
Run user-provided code
- protected virtual
int spawn (int max_new_threads)
Possibly spawn new thread(s)