Table of Contents

WAIT

Table Of Contents

  • [00004] WAIT - TASK WAIT REQUEST.
  • [00016] TASK WAIT REQUEST.
  • [00039] TASK WAIT REQUEST.

Source Code

WAIT.txt
  1. IDENT WAIT
  2. ENTRY WAIT
  3. SYSCOM B1
  4. TITLE WAIT - TASK WAIT REQUEST.
  5. *COMMENT WAIT - TASK WAIT REQUEST.
  6. COMMENT COPYRIGHT CONTROL DATA SYSTEMS INC. 1992.
  7. WAIT SPACE 4,10
  8. ***** WAIT - TASK WAIT REQUEST.
  9. *
  10. * M.M. CHEN. 79/10/10.
  11.  
  12. * COMMON DECK.
  13. *CALL COMKMAC
  14.  
  15. WAIT SPACE 4,25
  16. *** WAIT - TASK WAIT REQUEST.
  17. *
  18. * *WAIT* ALLOWS A TASK TO SUSPEND PROCESSING FOR THE AMOUNT
  19. * OF TIME SPECIFIED IN THE PARAMETER. THE MAXIMUM LENGTH OF
  20. * TIME A TASK CAN BE SUSPENDED IS 3600 SECONDS (1 HOUR).
  21. * IF NO PARAMETER IS SPECIFIED OR THE TIME IS GREATER THAN
  22. * 1 HOUR OR LESS THAN ZERO, TASK WILL BE ABORTED.
  23. *
  24. * CALL FORMAT -
  25. *
  26. * FORTRAN -
  27. *
  28. * CALL WAIT(VALUE) WHERE VALUE IS REAL NUMBER.
  29. *
  30. * COBOL -
  31. *
  32. * ENTER WAIT USING VALUE.
  33. *
  34. * WHERE VALUE IS COMPUTATIONAL-1.
  35.  
  36.  
  37. MAXW EQU 3600 MAXIMUM TIME IN SECONDS FOR *WAIT*
  38. SPACE 4,10
  39. ** WAIT - TASK WAIT REQUEST.
  40. *
  41. * ENTRY (A1)/(X1) = PARAMETER LIST.
  42. *
  43. * USES A - 2, 6.
  44. * X - 1, 2, 6.
  45. *
  46. * MACROS WAIT.
  47.  
  48.  
  49. VFD 42/0LWAIT,18/WAIT
  50.  
  51. WAIT SUBR ENTRY/EXIT
  52. ZR X1,WAIT1 IF NO PARAMETER SPECIFIED
  53. SA2 X1+ GET PARAMETER WORD
  54. UX2,B3
  55. LX2 X2,B3
  56. SX1 MAXW MAXIMUM VALUE
  57. NG X2,WAIT1 IF TIME IS NEGATIVE
  58. IX1 X1-X2
  59. SX6 X2
  60. NG X1,WAIT1 IF TIME IS GREATER THAN 1 HOUR
  61. SA6 WAIA SAVE PARAMETER
  62. WAIT WAIA
  63. EQ WAITX RETURN
  64.  
  65. * ABORT TASK.
  66.  
  67. WAIT1 ARGERR A1 ABORT TASK
  68.  
  69. WAIA BSSZ 1 WAIT TIME IN SECONDS
  70. END