home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / source / devel5 / tasks.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-20  |  691 b   |  21 lines

  1. /* Functions related to the simple "multi-tasker" */
  2.  
  3. /* Written by Bernie Roehl, June 1992 */
  4.  
  5. /* Copyright 1992 by Dave Stampe and Bernie Roehl.
  6.    May be freely used to write software for release into the public domain;
  7.    all commercial endeavours MUST contact Bernie Roehl and Dave Stampe
  8.    for permission to incorporate any part of this software into their
  9.    products!
  10.  */
  11.  
  12. typedef void TASK;
  13.  
  14. extern TASK *get_current_task(void);
  15. extern TASK *add_task(TASK **tasklist, void (*fn)(), long period, void *param);
  16. extern void del_task(TASK **tasklist, TASK *tsk);
  17. extern void run_tasks(TASK *tasklist);
  18. extern void *find_task_data(TASK *task);
  19.  
  20. /* End of tasks.h */
  21.