Merge pip2

This commit is contained in:
5 changed files with 7 additions and 7 deletions

View File

@@ -17,8 +17,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef PIP_EXECUTOR_H #ifndef PIEXECUTOR_H
#define PIP_EXECUTOR_H #define PIEXECUTOR_H
#include "piblockingdequeue.h" #include "piblockingdequeue.h"
#include <atomic> #include <atomic>
@@ -31,7 +31,7 @@
* TODO adapt documentation to template * TODO adapt documentation to template
*/ */
template <typename Thread_, typename Dequeue_> template <typename Thread_, typename Dequeue_>
class PIP_EXPORT PIThreadPoolExecutorTemplate { class PIThreadPoolExecutorTemplate {
public: public:
explicit PIThreadPoolExecutorTemplate(size_t corePoolSize = 1) : isShutdown_(false) { makePool(corePoolSize); } explicit PIThreadPoolExecutorTemplate(size_t corePoolSize = 1) : isShutdown_(false) { makePool(corePoolSize); }
@@ -108,4 +108,4 @@ protected:
typedef PIThreadPoolExecutorTemplate<PIThread, PIBlockingDequeue<std::function<void()> > > PIThreadPoolExecutor; typedef PIThreadPoolExecutorTemplate<PIThread, PIBlockingDequeue<std::function<void()> > > PIThreadPoolExecutor;
#endif //PIP_EXECUTOR_H #endif //PIEXECUTOR_H

View File

@@ -25,7 +25,7 @@
#include "pitimer.h" #include "pitimer.h"
#include "pipipelinethread.h" #include "pipipelinethread.h"
#include "pigrabberbase.h" #include "pigrabberbase.h"
#include "pithreadpoolexecutor.h" #include "piexecutor.h"
#include "piconditionvar.h" #include "piconditionvar.h"
#endif // PITHREADMODULE_H #endif // PITHREADMODULE_H

View File

@@ -1,5 +1,5 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "pithreadpoolexecutor.h" #include "piexecutor.h"
#include "pimutex.h" #include "pimutex.h"
#include "testutil.h" #include "testutil.h"

View File

@@ -1,6 +1,6 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "gmock/gmock.h" #include "gmock/gmock.h"
#include "executor.h" #include "piexecutor.h"
#include "testutil.h" #include "testutil.h"
using ::testing::_; using ::testing::_;