![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
00001 /******************************************************************************** 00002 * * 00003 * W o r k e r T h r e a d * 00004 * * 00005 ********************************************************************************* 00006 * Copyright (C) 2006,2012 by Jeroen van der Zijp. All Rights Reserved. * 00007 ********************************************************************************* 00008 * This library is free software; you can redistribute it and/or modify * 00009 * it under the terms of the GNU Lesser General Public License as published by * 00010 * the Free Software Foundation; either version 3 of the License, or * 00011 * (at your option) any later version. * 00012 * * 00013 * This library is distributed in the hope that it will be useful, * 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00016 * GNU Lesser General Public License for more details. * 00017 * * 00018 * You should have received a copy of the GNU Lesser General Public License * 00019 * along with this program. If not, see <http://www.gnu.org/licenses/> * 00020 ********************************************************************************/ 00021 #ifndef FXWORKER_H 00022 #define FXWORKER_H 00023 00024 #ifndef FXTHREAD_H 00025 #include "FXThread.h" 00026 #endif 00027 00028 namespace FX { 00029 00030 00041 class FXAPI FXWorker : public FXThread { 00042 private: 00043 FXRunnable *runnable; 00044 private: 00045 FXWorker(const FXWorker&); 00046 FXWorker &operator=(const FXWorker&); 00047 public: 00048 00050 FXWorker(FXRunnable* r=NULL); 00051 00053 virtual FXint run(); 00054 00056 virtual ~FXWorker(); 00057 }; 00058 00059 } 00060 00061 #endif
|
|