Skip to content

Commit 2ec826a

Browse files
committed
libyang DOC added note about printers not being thread-safe
1 parent 31c5a68 commit 2ec826a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libyang.h.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,9 +1041,9 @@ extern "C" {
10411041
* @page howtothreads libyang in Threads
10421042
*
10431043
* libyang can be used in multithreaded applications keeping in mind the following rules:
1044-
* - libyang context manipulation (adding new schemas) is not thread safe and it is supposed to be done in a main
1045-
* thread before any other work with context, schemas or data instances. Destroying the context is supposed to
1046-
* be done when no other thread accesses context, schemas nor data trees,
1044+
* - libyang context manipulation (adding new schemas, removing schemas or even printing schemas) is not thread safe
1045+
* and it is supposed to be done in a main thread before any other work with context, schemas or data instances.
1046+
* Destroying the context is supposed to be done when no other thread accesses context, schemas nor data trees,
10471047
* - data parser (\b lyd_parse*() functions) can be used simultaneously in multiple threads (also the returned
10481048
* #ly_errno is thread safe),
10491049
* - data manipulation (lyd_new(), lyd_insert(), lyd_unlink(), lyd_free() and many other

0 commit comments

Comments
 (0)