1 /* 2 * barrier -- mouse and keyboard sharing utility 3 * Copyright (C) 2012-2016 Symless Ltd. 4 * Copyright (C) 2002 Chris Schoeneman 5 * 6 * This package is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * found in the file LICENSE that should have accompanied this file. 9 * 10 * This package is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #pragma once 20 21 #include "arch/XArch.h" 22 23 //! Thread exception to exit 24 /*! 25 Thrown by Thread::exit() to exit a thread. Clients of Thread 26 must not throw this type but must rethrow it if caught (by 27 XThreadExit, XThread, or ...). 28 */ 29 class XThreadExit : public XThread { 30 public: 31 //! \c result is the result of the thread XThreadExit(void * result)32 XThreadExit(void* result) : m_result(result) { } ~XThreadExit()33 ~XThreadExit() { } 34 35 public: 36 void* m_result; 37 }; 38