User Tools

Site Tools


cdc:nos2.source:nam5871:nvfstim

NVFSTIM

Table Of Contents

  • [00005] PROC NVFSTIM
  • [00006] NVFSTIM - STARTUP TIMEOUT
  • [00011] STARTUP TIMEOUT
  • [00035] PROC SSTRTS

Source Code

NVFSTIM.txt
  1. *DECK NVFSTIM
  2. USETEXT TEXTNVF
  3. USETEXT TXTAPSS
  4.  
  5. PROC NVFSTIM;
  6. # TITLE NVFSTIM - STARTUP TIMEOUT #
  7.  
  8. BEGIN # NVFSTIM #
  9.  
  10. #
  11. ** NVFSTIM - STARTUP TIMEOUT
  12. *
  13. * M. GIBIAN 84/05/02
  14. *
  15. * THIS PROCEDURE PROCESSES A TIMEOUT OF A REQUEST STARTABLE
  16. * APPLICATION THAT WAS STARTED BY NVF BUT HAS NOT NETTED ON WITHIN
  17. * THE REQUIRED TIME INTERVAL.
  18. *
  19. * PROC NVFSTIM
  20. *
  21. * ENTRY:
  22. * TIMEOUT ASQ ENTRY IN *MSGBUF*
  23. *
  24. * EXIT:
  25. * AST ENTRY FOR COPY OF REQUEST STARTABLE APPLICATION IS CLEARED
  26. *
  27. * METHOD:
  28. * SEARCH *AST* TABLE FOR A MATCH ON TIMER CANCEL NUMBER AND ABN
  29. * IN TIMEOUT MESSAGE. IF PRESENT, CLEAR ENTRY.
  30. *
  31. #
  32.  
  33. XREF
  34. BEGIN
  35. PROC SSTRTS; # RELEASE TABLE SPACE #
  36. END
  37.  
  38. ITEM MATCH B; # FLAG MATCH FOUND DURING SEARCH #
  39. ITEM NENTRY I; # NUMBER OF ENTRIES IN TABLE #
  40. ITEM PORD I; # PRIMARY AST ENTRY INDEX #
  41. ITEM SORD I; # SECONDARY AST ENTRY INDEX #
  42.  
  43. #
  44.   SEARCH AST FOR TIMER CANCEL NUMBER
  45. #
  46. MATCH = FALSE;
  47. NENTRY = ASTLNGTH / ASTSIZ$; # CALCULATE NUMBER OF ENTRIES #
  48. FOR SORD = 0 STEP 1 WHILE (NOT MATCH AND SORD LS NENTRY) DO
  49. BEGIN
  50. IF (AST$TCAN[SORD] EQ ABHABN[0]) THEN
  51. BEGIN
  52. MATCH = TRUE;
  53.  
  54. # LOCATE PRIMARY AST ENTRY FOR THIS APPLICATION #
  55.  
  56. FOR PORD = 0 STEP 1 WHILE (PORD LS (ASTLNGTH/ASTSIZ$) AND
  57. (AST$PANAM[PORD] NQ AST$SANAM[SORD])) DO
  58. BEGIN
  59. END
  60.  
  61. AST$SNPF[PORD] = FALSE;
  62.  
  63. IF AST$PANAM[SORD] NQ AST$SANAM[SORD] THEN
  64. BEGIN
  65.  
  66. # RELEASE SECONDARY AST ENTRY FOR TIMED OUT APPLICATION #
  67.  
  68. SORD = SORD * ASTSIZ$;
  69. SSTRTS(P<AST>,SORD,ASTSIZ$);
  70. END
  71.  
  72. END
  73. END
  74. END # NVFSTIM #
  75. TERM
cdc/nos2.source/nam5871/nvfstim.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator