| 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 | /*!
|
|---|
| 22 | Thrown by CThread::exit() to exit a thread. Clients of CThread
|
|---|
| 23 | must not throw this type but must rethrow it if caught (by
|
|---|
| 24 | XThreadExit, XThread, or ...).
|
|---|
| 25 | */
|
|---|
| 26 | class XThreadExit : public XThread {
|
|---|
| 27 | public:
|
|---|
| 28 | //! \c result is the result of the thread
|
|---|
| 29 | XThreadExit(void* result) : m_result(result) { }
|
|---|
| 30 | ~XThreadExit() { }
|
|---|
| 31 |
|
|---|
| 32 | public:
|
|---|
| 33 | void* m_result;
|
|---|
| 34 | };
|
|---|
| 35 |
|
|---|
| 36 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.