![]() |
|
|||
Warning, file /include/boost/compute/exception/set_default_queue_error.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 //---------------------------------------------------------------------------// 0002 // Copyright (c) 2019 Anthony Chang <ac.chang@outlook.com> 0003 // 0004 // Distributed under the Boost Software License, Version 1.0 0005 // See accompanying file LICENSE_1_0.txt or copy at 0006 // http://www.boost.org/LICENSE_1_0.txt 0007 // 0008 // See http://boostorg.github.com/compute for more information. 0009 //---------------------------------------------------------------------------// 0010 0011 #ifndef BOOST_COMPUTE_EXCEPTION_SET_DEFAULT_QUEUE_ERROR_HPP 0012 #define BOOST_COMPUTE_EXCEPTION_SET_DEFAULT_QUEUE_ERROR_HPP 0013 0014 #include <exception> 0015 0016 namespace boost { 0017 namespace compute { 0018 0019 /// \class set_default_queue_error 0020 /// \brief Exception thrown when failure to set default command queue 0021 /// 0022 /// This exception is thrown when Boost.Compute fails to set up user-provided 0023 /// default command queue for the system. 0024 class set_default_queue_error : public std::exception 0025 { 0026 public: 0027 /// Creates a new set_default_queue_error exception object. 0028 set_default_queue_error() throw() 0029 { 0030 } 0031 0032 /// Destroys the set_default_queue_error object. 0033 ~set_default_queue_error() throw() 0034 { 0035 } 0036 0037 /// Returns a string with a description of the error. 0038 const char* what() const throw() 0039 { 0040 return "User command queue mismatches default device and/or context"; 0041 } 0042 }; 0043 0044 } // end compute namespace 0045 } // end boost namespace 0046 0047 #endif // BOOST_COMPUTE_EXCEPTION_SET_DEFAULT_QUEUE_ERROR_HPP
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |