Overview

The "cthreads" module is a cooperative thread library.

Requirements
------------
- Gauche 0.8.6 or later

Install
-------
 % gauche-package install cthreads-0.1.tgz

 or 

 Extract cthreads-0.1.tgz and
 % ./configure
 % make
 % make install

API
---
You can use any functions in gauche.threads and gauche.parameter, but there are some differences. They are:
- A new function "thread-select! port flags" is added. The function switches 
  another thread if an specified I/O port is not available. "flags" are 
  the same ones in "selector-add!".
- The function "gauche-thread-type" returns a symbol "cthread".
- Classes for a thread, a mutex, a condition variable and a parameter are 
  <cthread>, <cmutex>, <ccondition-variable> and <cparameter>.
- A thread switches iff you call thread-yield!, thread-sleep!, 
  thread-terminate!, thread-join!, thread-select!, mutex-lock! 
  and mutex-unlock!.