Skip to content

Commit

Permalink
Moving files.
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Zientkiewicz <michalz@nvidia.com>
  • Loading branch information
mzient committed Feb 27, 2023
1 parent 1b74977 commit 70deb50
Show file tree
Hide file tree
Showing 5 changed files with 383 additions and 319 deletions.
290 changes: 0 additions & 290 deletions dali/pipeline/util/new_thread_pool.h

This file was deleted.

15 changes: 1 addition & 14 deletions dali/pipeline/util/thread_pool.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2018-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// Copyright (c) 2018-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -54,19 +54,6 @@ ThreadPool::~ThreadPool() {
for (auto &thread : threads_) {
thread.join();
}

#pragma GCC diagnostic push
#ifdef __clang__
#pragma GCC diagnostic ignored "-Wexceptions"
#else
#pragma GCC diagnostic ignored "-Wterminate"
#endif

if (!work_queue_.empty())
throw std::logic_error("There was outstanding work in the queue.");

#pragma GCC diagnostic pop

#if NVML_ENABLED
nvml::Shutdown();
#endif
Expand Down

0 comments on commit 70deb50

Please sign in to comment.