Eigen
3.4.90 (git rev 5a9f66fb35d03a4da9ef8976e67a61b30aa16dcf)
Loading...
Searching...
No Matches
ThreadCancel.h
1
// This file is part of Eigen, a lightweight C++ template library
2
// for linear algebra.
3
//
4
// Copyright (C) 2016 Benoit Steiner <
[email protected]
>
5
//
6
// This Source Code Form is subject to the terms of the Mozilla
7
// Public License v. 2.0. If a copy of the MPL was not distributed
8
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9
10
#ifndef EIGEN_CXX11_THREADPOOL_THREAD_CANCEL_H
11
#define EIGEN_CXX11_THREADPOOL_THREAD_CANCEL_H
12
13
// Try to come up with a portable way to cancel a thread
14
#if EIGEN_OS_GNULINUX
15
#define EIGEN_THREAD_CANCEL(t) pthread_cancel(t.native_handle());
16
#define EIGEN_SUPPORTS_THREAD_CANCELLATION 1
17
#else
18
#define EIGEN_THREAD_CANCEL(t)
19
#endif
20
21
#endif
// EIGEN_CXX11_THREADPOOL_THREAD_CANCEL_H
Eigen
src
ThreadPool
ThreadCancel.h
Generated on Tue May 28 2024 11:34:56 for Eigen by
1.11.0