Revision dd31cb03 doc/activitydiagrams/service/urtServiceInit.uml
doc/activitydiagrams/service/urtServiceInit.uml | ||
---|---|---|
39 | 39 |
==== |
40 | 40 |
-- **return** : urt_status_t -- |
41 | 41 |
Returns ""URT_STATUS_OK"" on success. |
42 |
Returns ""URT_STATUS_ERROR"" if another service with the same identifier already exists.
|
|
42 |
Returns ""URT_STATUS_SERVICE_DUPLICATE"" if another service with the same identifier already exists.
|
|
43 | 43 |
endnote |
44 | 44 |
|
45 | 45 |
/'### PROCEDURE ##############################################################'/ |
... | ... | |
47 | 47 |
start |
48 | 48 |
:initialize members; |
49 | 49 |
note |
50 |
**next** ← ""NULL"" |
|
51 |
**id** ← id |
|
52 |
urtMutexInit(**lock**) |
|
53 |
**callback** ← callback |
|
54 |
.. URT_CFG_RPC_QOS_JITTERCHECKS == true || URT_CFG_RPC_PROFILING == true .. |
|
55 |
**minDuration** ← 0xF..F |
|
56 |
**maxDuration** ← 0 |
|
50 |
* **next** ← ""NULL"" |
|
51 |
* **id** ← id |
|
52 |
* urtMutexInit(**lock**) |
|
53 |
* **callback** ← callback |
|
57 | 54 |
.. URT_CFG_RPC_PROFILING == true .. |
58 |
**sumDurations** ← 0 |
|
59 |
**numCalls** ← 0 |
|
60 |
**numTimeouts** ← 0 |
|
55 |
* **minDuration** ← 0xF..F |
|
56 |
* **maxDuration** ← 0 |
|
57 |
* **sumDurations** ← 0 |
|
58 |
* **numCalls** ← 0 |
|
59 |
* **numTimeouts** ← 0 |
|
61 | 60 |
endnote |
62 | 61 |
:lock core; |
63 | 62 |
:access first service; |
... | ... | |
82 | 81 |
:unlock core; |
83 | 82 |
stop |
84 | 83 |
note |
85 |
Returns ""URT_STATUS_ERROR"":
|
|
84 |
Returns ""URT_STATUS_SERVICE_DUPLICATE"":
|
|
86 | 85 |
endnote |
87 | 86 |
endif |
88 | 87 |
|
Also available in: Unified diff