source: trunk/synergy/lib/mt/XThread.h@ 2751

Last change on this file since 2751 was 2749, checked in by bird, 19 years ago

synergy v1.3.1 sources (zip).

File size: 992 bytes
Line 
1/*
2 * synergy -- mouse and keyboard sharing utility
3 * Copyright (C) 2002 Chris Schoeneman
4 *
5 * This package is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * found in the file COPYING that should have accompanied this file.
8 *
9 * This package is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#ifndef XTHREAD_H
16#define XTHREAD_H
17
18#include "XArch.h"
19
20//! Thread exception to exit
21/*!
22Thrown by CThread::exit() to exit a thread. Clients of CThread
23must not throw this type but must rethrow it if caught (by
24XThreadExit, XThread, or ...).
25*/
26class XThreadExit : public XThread {
27public:
28 //! \c result is the result of the thread
29 XThreadExit(void* result) : m_result(result) { }
30 ~XThreadExit() { }
31
32public:
33 void* m_result;
34};
35
36#endif
Note: See TracBrowser for help on using the repository browser.