previous up next     contents index
Next: BignumsRationals, and Complex Up: Threads Previous: Integration with Threads

Library Functions

 
Scheme_Object *  scheme_new_eval(Scheme_Env *base, int argc, Scheme_Object **argv) 

Creates a new global address space and returns the eval procedure.

 
Scheme_Object *  scheme_thread(Scheme_Object *thunk, Scheme_Env *env) 

Creates a new thread in the given environment. The new thread begins evaluating the application of the procedure thunk (with no arguments).

 
void   scheme_process_block(int sleep_time) 

Swaps out the current process in favor of other processes. If sleep_time is not 0, then this process will sleep for at least sleep_time seconds.

 
void   scheme_swap_process(Scheme_Process *process) 

Swaps out the current process in favor of process.

 
void   scheme_check_threads() 

This function is periodically called by the embedding program to give background processes time to execute. See section 3.7.2 for more information.

 
void   scheme_wake_up() 

This function is called by the embedding program when there is input on an external file descriptor. See section 3.7.3 for more information.



PLT