Merge Request #11

Open
jerasure/jerasure!11
Created by Martin-Jia

Add locks to make some of the functions thread safe

The galois operations are not thread safe. Say there are multiple threads and one of them is initializing the gfp_array. The array will be set to be not NULL at first, but actually not complete the initialize process yet. When another thread comes in, it detects the array is finished to be initialized, but some variables and function pointers are still empty, which will cause segment fault and so on.

I know that Jerasure is not designed for multi-thread scenarios, but this will help to get it some parallel ability.

Assignee: None
Milestone: None
This can't be merged automatically, even if it could be merged you don't have the permission to do so.
This can be merged automatically but you don't have the permission to do so.
Commits (1)
1 participants