Jesper Louis Andersen 7d8fdf69c0 Protect generichash by a mutex
While sodium is thread-safe, our
resources are not. Furthermore,
we might have an update call going
when someone decides to call
finalize and so on. It is not clever
to do so, but on the other hand
I want to protect against this.

While here, mark the mutexed
calls as dirty CPU. This avoids them
blocking the main scheduler and
only messes with the background
dirty threads, which is somewhat
more safe.

The consequence is that order
access to the resource is now
serialized. I don't think you should
do it, but it is now possible.
2020-01-24 14:48:21 +01:00
..
2020-01-24 14:48:21 +01:00
2020-01-21 13:56:17 +01:00
2020-01-21 13:56:17 +01:00
2020-01-24 14:48:21 +01:00
2020-01-21 13:56:17 +01:00
2020-01-20 15:31:44 +01:00
2020-01-22 22:22:53 +01:00
2020-01-20 15:31:44 +01:00
2020-01-21 13:56:17 +01:00
2020-01-20 15:31:44 +01:00
2020-01-21 13:56:17 +01:00
2020-01-21 13:56:17 +01:00
2020-01-20 15:31:44 +01:00