1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-26 02:20:30 +01:00

remove threading in == for Automorphisms

This commit is contained in:
Marek Kaluba 2021-05-16 23:16:35 +02:00
parent 5da33782aa
commit 84bfbd7408
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -66,9 +66,11 @@ function Base.:(==)(g::A, h::A) where A<:FPGroupElement{<:AutomorphismGroup}
hash(g) != hash(h) && return false hash(g) != hash(h) && return false
# words are different, but hashes agree # words are different, but hashes agree
@sync begin if !img_computed
!img_computed && Threads.@spawn img = equality_data(g) img = equality_data(g)
!imh_computed && Threads.@spawn imh = equality_data(h) end
if !imh_computed
imh = equality_data(h)
end end
equal = img == imh equal = img == imh