entangled icon indicating copy to clipboard operation
entangled copied to clipboard

crypto: investigate if we can get rid of pearldiver status lock

Open thibault-martinez opened this issue 6 years ago • 1 comments

thibault-martinez avatar Aug 29 '19 13:08 thibault-martinez

Pearl diver's status can only be asynchronously assigned value of SEARCH_FINISHED. So even if two threads change status value it's always going to be SEARCH_FINISHED.

The lock might be needed if pearl diver supported interruption logic. In this case the access to status variable must be exclusive.

semenov-vladyslav avatar Sep 03 '19 18:09 semenov-vladyslav