home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Homebrewer's Handbook / vr.iso / vr386 / oldtasks.h < prev    next >
C/C++ Source or Header  |  1996-03-19  |  2KB  |  54 lines

  1. /* Functions related to the simple "multi-tasker" */
  2.  
  3. /* Original written by Bernie Roehl, June 1992 */
  4.  
  5. // THIS WILL BE MODIFIED HEAVILY SOON
  6. // IN THE NEXT API RELEASE
  7.  
  8. /*
  9.  This code is part of the VR-386 project, created by Dave Stampe.
  10.  VR-386 is a desendent of REND386, created by Dave Stampe and
  11.  Bernie Roehl.  Almost all the code has been rewritten by Dave
  12.  Stampre for VR-386.
  13.  
  14.  Copyright (c) 1994 by Dave Stampe:
  15.  May be freely used to write software for release into the public domain
  16.  or for educational use; all commercial endeavours MUST contact Dave Stampe
  17.  (dstampe@psych.toronto.edu) for permission to incorporate any part of
  18.  this software or source code into their products!  Usually there is no
  19.  charge for under 50-100 items for low-cost or shareware products, and terms
  20.  are reasonable.  Any royalties are used for development, so equipment is
  21.  often acceptable payment.
  22.  
  23.  ATTRIBUTION:  If you use any part of this source code or the libraries
  24.  in your projects, you must give attribution to VR-386 and Dave Stampe,
  25.  and any other authors in your documentation, source code, and at startup
  26.  of your program.  Let's keep the freeware ball rolling!
  27.  
  28.  DEVELOPMENT: VR-386 is a effort to develop the process started by
  29.  REND386, improving programmer access by rewriting the code and supplying
  30.  a standard API.  If you write improvements, add new functions rather
  31.  than rewriting current functions.  This will make it possible to
  32.  include you improved code in the next API release.  YOU can help advance
  33.  VR-386.  Comments on the API are welcome.
  34.  
  35.  CONTACT: dstampe@psych.toronto.edu
  36. */
  37.  
  38.  
  39. typedef void TASK;
  40.  
  41. extern TASK *get_current_task(void);
  42. extern TASK *add_task(TASK **tasklist, void (*fn)(), long period, void *param);
  43. extern void del_task(TASK **tasklist, TASK *tsk);
  44. extern void run_tasks(TASK *tasklist);
  45. extern void *find_task_data(TASK *task);
  46.  
  47. extern TASK *tasklist;    // the global task list
  48.  
  49. // from wparse.c for list searching
  50.  
  51.  
  52.  
  53. /* End of tasks.h */
  54.