Skip to content

Commit 90168ab

Browse files
committed
module: add lock assumption to doxy
1 parent f6f313c commit 90168ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/module.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ struct module *get_parent_module(struct module *node)
258258
/**
259259
* id_num and id_name distinguish in case that the node has more child nodes with
260260
* the same node_name (the same class). If id_name == NULL, id_num is used.
261+
*
262+
* should be called with node->module_priv->lock locked
261263
*/
262264
static struct module *find_child(struct module *node, const char *node_name, int id_num,
263265
const char *id_name)
@@ -337,6 +339,7 @@ struct module *get_module(struct module *root, const char *const_path)
337339
return receiver;
338340
}
339341

342+
/// should be called with node->module_priv->lock locked
340343
struct module *get_matching_child(struct module *node, const char *const_path)
341344
{
342345
struct module *receiver = node;

0 commit comments

Comments
 (0)