Qore Programming Language: include/qore/AbstractThreadResource.h (6585) Source File

Qore Programming Language 0.8.11

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
AbstractThreadResource.h
1 /* -*- mode: c++; indent-tabs-mode: nil -*- */
2 /*
3 AbstractThreadResource.h
4
5 Qore Programming Language
6
7 Copyright 2003 - 2013 David Nichols
8
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
13
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with this library; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
24 #ifndef _QORE_ABSTRACTTHREADRESOURCE_H
25
26 #define _QORE_ABSTRACTTHREADRESOURCE_H
27
28 #include <qore/AbstractPrivateData.h>
29
31
42 class AbstractThreadResource : public AbstractPrivateData {
43 public:
45 DLLEXPORT virtual ~AbstractThreadResource() {
46 }
48 virtual void cleanup(class ExceptionSink *xsink) = 0;
49 };
50
51 #endif
AbstractThreadResource
base class for saving data using Qore's thread resource management system
Definition: AbstractThreadResource.h:42
AbstractPrivateData
the base class for all data to be used as private data of Qore objects
Definition: AbstractPrivateData.h:36
ExceptionSink
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:35
AbstractThreadResource::~AbstractThreadResource
virtual DLLEXPORT ~AbstractThreadResource()
virtual destructor
Definition: AbstractThreadResource.h:45
AbstractThreadResource::cleanup
virtual void cleanup(class ExceptionSink *xsink)=0
this function is called when a thread terminates and a thread resource is still allocated to the thre...