gnunet-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-developers] Re: Gratuitous gcry_fast_random_poll


From: Marcus Brinkmann
Subject: [GNUnet-developers] Re: Gratuitous gcry_fast_random_poll
Date: Wed, 05 May 2004 23:07:59 -0000
User-agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI)

At Wed, 05 May 2004 19:35:53 +0200,
Werner Koch wrote:
> I don't know what you mean by locking though.  If you are using a
> multi-threaded application you need to make sure that libgcrypt is
> porperly initialized - see the section in the manual.

The asserts in the code check if the proper lock/unlock calls are made
in the single-threaded case, too.

I put them in there for my own debugging at the time - in GPGME, where
the code originated, all locking happens internally, so an assertion
would show if internal to GPGME some locks were inproperly used.

If the locking interface is exported in gcrypt, and users are
responsible for their own locking, these assertions should probably be
removed.

Thanks,
Marcus





reply via email to

[Prev in Thread] Current Thread [Next in Thread]