Skip to content

Commit

Permalink
modified function name parameter when passing to thread with class na…
Browse files Browse the repository at this point in the history
…me to evade errors when built on mac environment
  • Loading branch information
ShreeHarish committed Oct 29, 2024
1 parent fc1ad5a commit a3fc834
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions hashing/ripemd_160.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,13 @@ class RIPEMD160 {
E_dash = h_4;

// parallely process the 80 rounds
std::thread compute_for_block_thread(&compute_for_block, this, &A,
&B, &C, &D, &E, &T,
std::thread compute_for_block_thread(&RIPEMD160::compute_for_block,
this, &A, &B, &C, &D, &E, &T,
std::ref(current_block_data));
std::thread compute_for_block_dash_thread(
&compute_for_block_dash, this, &A_dash, &B_dash, &C_dash,
&D_dash, &E_dash, &T_dash, std::ref(current_block_data));
&RIPEMD160::compute_for_block_dash, this, &A_dash, &B_dash,
&C_dash, &D_dash, &E_dash, &T_dash,
std::ref(current_block_data));

compute_for_block_thread.join();
compute_for_block_dash_thread.join();
Expand Down

0 comments on commit a3fc834

Please sign in to comment.