Skip to content

Commit

Permalink
doxygen metadata: use explicit os::
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Dec 6, 2023
1 parent 3f63f33 commit 50df4ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion include/micro-os-plus/utils/lists.h
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,9 @@ namespace micro_os_plus::utils
* @par Examples
*
* @code{.cpp}
* using threads_list = utils::intrusive_list<
* namespace os = micro_os_plus;
* using threads_list = os::utils::intrusive_list<
* thread, utils::double_list_links, &thread::child_links_>;
* @endcode
*
Expand Down
6 changes: 4 additions & 2 deletions website/pages/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ Here are some excerpts:
```cpp
#include <micro-os-plus/utils/lists.h>
namespace os = micro_os_plus;
class child
{
public:
Expand All @@ -181,10 +183,10 @@ protected:
public:
// Intrusive node used to link this child to the registry list.
// Must be public.
utils::double_list_links registry_links_;
os::utils::double_list_links registry_links_;
};
using static_children_list = utils::intrusive_list<
using static_children_list = os::utils::intrusive_list<
child, // type of nodes in the list
decltype (child::registry_links_), // type of the `registry_links_` member
&child::registry_links_, // name of member
Expand Down

0 comments on commit 50df4ec

Please sign in to comment.