Skip to content

Commit

Permalink
libyang DOC added note about printers not being thread-safe
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Oct 17, 2018
1 parent 31c5a68 commit 2ec826a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libyang.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -1041,9 +1041,9 @@ extern "C" {
* @page howtothreads libyang in Threads
*
* libyang can be used in multithreaded applications keeping in mind the following rules:
* - libyang context manipulation (adding new schemas) is not thread safe and it is supposed to be done in a main
* thread before any other work with context, schemas or data instances. Destroying the context is supposed to
* be done when no other thread accesses context, schemas nor data trees,
* - libyang context manipulation (adding new schemas, removing schemas or even printing schemas) is not thread safe
* and it is supposed to be done in a main thread before any other work with context, schemas or data instances.
* Destroying the context is supposed to be done when no other thread accesses context, schemas nor data trees,
* - data parser (\b lyd_parse*() functions) can be used simultaneously in multiple threads (also the returned
* #ly_errno is thread safe),
* - data manipulation (lyd_new(), lyd_insert(), lyd_unlink(), lyd_free() and many other
Expand Down

0 comments on commit 2ec826a

Please sign in to comment.