|
|
|||
File indexing completed on 2025-12-16 10:14:27
0001 // This file is part of Eigen, a lightweight C++ template library 0002 // for linear algebra. 0003 // 0004 // Copyright (C) 2016 Benoit Steiner <benoit.steiner.goog@gmail.com> 0005 // 0006 // This Source Code Form is subject to the terms of the Mozilla 0007 // Public License v. 2.0. If a copy of the MPL was not distributed 0008 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. 0009 0010 #ifndef EIGEN_CXX11_THREADPOOL_THREAD_CANCEL_H 0011 #define EIGEN_CXX11_THREADPOOL_THREAD_CANCEL_H 0012 0013 // Try to come up with a portable way to cancel a thread 0014 #if EIGEN_OS_GNULINUX 0015 #define EIGEN_THREAD_CANCEL(t) \ 0016 pthread_cancel(t.native_handle()); 0017 #define EIGEN_SUPPORTS_THREAD_CANCELLATION 1 0018 #else 0019 #define EIGEN_THREAD_CANCEL(t) 0020 #endif 0021 0022 0023 #endif // EIGEN_CXX11_THREADPOOL_THREAD_CANCEL_H
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|