Beginner questions about npth

Werner Koch wk at gnupg.org
Wed Sep 2 14:13:17 CEST 2015


On Tue,  1 Sep 2015 07:50, gniibe at fsij.org said:

> You can't with nPth (by its design).  Please use system thread
> library.

Actually you can do that with nPth if you really know what you are
doing.  This is sometimes necessary when calling functions from other
libraries or system functions not wrapped bu nPth:

  for (npth_unprotect (), item = ldap_first_entry (ld, msg), npth_protect ();
       item;
       npth_unprotect (), item = ldap_next_entry (ld, item), npth_protect ())
   {
       foo ();         
   }


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-devel mailing list