Skip to content

Commit

Permalink
remove lock guard on block map that causes deadlock.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmellorcrummey committed Jan 11, 2018
1 parent a130b28 commit bac1d36
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions parseAPI/src/Parser.C
Expand Up @@ -55,8 +55,8 @@
#include <boost/timer/timer.hpp>
#include <fstream>

#define USE_CILK 1
#define USE_OPENMP 0
#define USE_CILK 0
#define USE_OPENMP 1

#if USE_CILK
#include <cilk/cilk.h>
Expand Down Expand Up @@ -1793,7 +1793,9 @@ Parser::block_at(


{
#ifdef JOHNMC_REMOVE_DEADLOCK
boost::lock_guard<Function> g(*owner);
#endif
for(auto i = owner->blocks_begin();
i != owner->blocks_end();
++i)
Expand Down

0 comments on commit bac1d36

Please sign in to comment.