Skip to content

Commit

Permalink
remove c++17 bit
Browse files Browse the repository at this point in the history
Connected to the fix for #5351
  • Loading branch information
greglandrum committed Aug 4, 2022
1 parent 36fcb57 commit 92acaa5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Code/GraphMol/FileParsers/testMultithreadedMolSupplier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ using namespace std::chrono;

// thread safe printing for debugging
// Usage Example: PrintThread{} << "something";
struct PrintThread : public std::stringstream {
inline static std::mutex cout_mutex;
~PrintThread() override {
std::lock_guard<std::mutex> l{cout_mutex};
std::cout << rdbuf();
}
};
// struct PrintThread : public std::stringstream {
// inline static std::mutex cout_mutex;
// ~PrintThread() override {
// std::lock_guard<std::mutex> l{cout_mutex};
// std::cout << rdbuf();
// }
// };

void testSmiConcurrent(std::istream *strm, bool takeOwnership,
std::string delimiter, int smilesColumn, int nameColumn,
Expand Down Expand Up @@ -410,12 +410,12 @@ int main() {
BOOST_LOG(rdErrorLog) << "Finished: testSDCorrectness()\n";
BOOST_LOG(rdErrorLog) << "-----------------------------------------\n\n";

/*
BOOST_LOG(rdErrorLog) << "\n-----------------------------------------\n";
testPerformance();
BOOST_LOG(rdErrorLog) << "Finished: testPerformance()\n";
BOOST_LOG(rdErrorLog) << "-----------------------------------------\n\n";
*/
/*
BOOST_LOG(rdErrorLog) << "\n-----------------------------------------\n";
testPerformance();
BOOST_LOG(rdErrorLog) << "Finished: testPerformance()\n";
BOOST_LOG(rdErrorLog) << "-----------------------------------------\n\n";
*/

#endif

Expand Down

0 comments on commit 92acaa5

Please sign in to comment.