Revision dd31cb03 doc/activitydiagrams/node/_main.uml

View differences:

doc/activitydiagrams/node/_main.uml
30 30
note
31 31
  -- **arg** : void* --
32 32
  Optional Argument to the thread main function (see ""urt_osThreadFunction_t"").
33
  This functions expects no arguments.
33
  This function expects ""arg"" to be of type ""urt_node_t*"".
34 34
  ====
35 35
  -- **return** : void --
36 36
endnote
......
46 46
      Callback must not loop.
47 47
    endnote
48 48
    if (Event mask returned by ""setupcallback()"" redefines core event?) then (yes)
49
      :call ""urtCoreStopNodes(URT_STATUS_ERROR)"";
49
      :call ""urtCoreStopNodes(URT_STATUS_NODE_INVALEVTMASK)"";
50 50
    else (no)
51 51
    endif
52 52
  else (no)
53
    :act as if ""stupcallback"" returned 0xF..F;
53
    :act as if ""setupcallback"" returned 0xF..F;
54 54
  endif
55 55
  if (Core status is ""URT_STATUS_OK""?) then (yes)
56 56
    :suspend all child threads (recursively);
......
60 60
  endif
61 61
}
62 62
partition "loop" {
63
  while (Thread termination requested?) is (no)
63
  while (Termination of node thread requested?) is (no)
64 64
    :Wait for a specified or a core event;
65 65
    if (Core event received?) then (yes)
66 66
    else (no)
......
68 68
      note
69 69
        Callback must not loop.
70 70
      endnote
71
      #EEEEEE:..//URT_CFG_PUBSUB_PROFILING == true || URT_CFG_RPC_PROFILING = true//..\nincrement loop counter;
71 72
      if (Event mask returned by ""loopcallback()"" redefines core event?) then (yes)
72
        :call ""urtCoreStopNodes(URT_STATUS_ERROR)"";
73
        :call ""urtCoreStopNodes(URT_STATUS_NODE_INVALEVTMASK)"";
73 74
      else (no)
74 75
      endif
75 76
    endif
76
  endwhile
77
  endwhile (yes)
77 78
}
78 79
partition "outro" {
79 80
  if (Node's ""shutdowncallback"" is set?) then (yes)
80 81
    :execute ""shutdowncallback()"" with core's status as argument;
82
    note
83
      Callback must terminate.
84
    endnote
81 85
  else (no)
82 86
  endif
83 87
  :unregister from core event;

Also available in: Unified diff