[Top][All Lists]

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

[GNUnet-developers] Re: Gratuitous gcry_fast_random_poll

From: Werner Koch
Subject: [GNUnet-developers] Re: Gratuitous gcry_fast_random_poll
Date: Fri, 07 May 2004 11:01:27 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

On Wed, 05 May 2004 21:13:11 +0200, Marcus Brinkmann said:

> Yes, but compare it with pthread: you have error checking locks
> (robust locks) and fast locks.  And everybody just uses the fast locks
> and never checks the error.

Which is bad because you won't detect logical errors in your program.

> It's not a good thing if a library gives an assertion failure, unless
> there really is an internal error.  An error value returned would be

It is an internal error.  The library is used in a non-allowed way and
all shit may happen later.  Be glad that it tells you that - even if
you don't want so.  It is not different from free(3) which might abort
the process if it detects an invalid state of the heaps.


reply via email to

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