[gnutls-devel] GnuTLS | WIP: fixed operation under multiple threads (!935)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Mon Feb 25 15:17:58 CET 2019
Tim Rühsen started a new discussion on lib/constate.c:
> record_parameters_st **params;
> int ret;
>
> + GNUTLS_STATIC_MUTEX_LOCK(epoch_lock);
You simplify the code (is a matter of favor):
```
GNUTLS_STATIC_MUTEX_LOCK(epoch_lock);
ret = epoch_resolve(session, epoch_rel, &epoch);
params = epoch_get_slot(session, epoch);
GNUTLS_STATIC_MUTEX_UNLOCK(epoch_lock);
/* do diagnostics here */
```
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/935#note_144672340
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190225/eca9d2e4/attachment.html>
More information about the Gnutls-devel
mailing list