/' µRtWare is a lightweight publish/subscribe middleware for real-time applications. It was developed as part of the software habitat for the Autonomous Mini Robot [1] (AMiRo) but can be used for other purposes as well. Copyright (C) 2018..2020 Thomas Schöpping et al. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . '/ /'### INTRO ##################################################################'/ @startuml title **µRtWare**\nurtNrtSubscriberUnsubscribe()\n /'### PARAMETERS & RETURN ####################################################'/ note -- **subscriber** : urt_nrtsubscriber_t* -- The NRT subscriber to be unsubscribed. Must not be ""NULL"". ==== -- **return** : urt_status_t -- Returns ""URT_STATUS_OK"" on sucess. Returns ""URT_STATUS_UNSUBSCRIBE_NOTOPIC"" if the subscriber is not associated to a topic. endnote /'### PROCEDURE ##############################################################'/ start if (Associated to a topic?) then (yes) #EEEEEE:..//URT_CFG_PUBSUB_PROFILING == true//..\nlock topic; fork :unregister event; fork again #EEEEEE:..//URT_CFG_PUBSUB_PROFILING == true//..\ndecrement counter of subscribers (@topic); endfork #EEEEEE:..//URT_CFG_PUBSUB_PROFILING == true//..\nunlock topic; :reset members; note -- urt_basesubscriber_t -- * **topic** ← ""NULL"" * **lastMessage** ← ""NULL"" * **lastMessageTime** ← 0 endnote stop note Returns ""URT_STATUS_OK"". endnote else (no) stop note Returns ""URT_STATUS_UNSUBSCRIBE_NOTOPIC"". endnote endif /'### OUTRO ##################################################################'/ @enduml