All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
AbstractThreadResource.h
/* -*- mode: c++; indent-tabs-mode: nil -*- */
/*
AbstractThreadResource.h
Qore Programming Language
Copyright 2003 - 2013 David Nichols
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _QORE_ABSTRACTTHREADRESOURCE_H
#define _QORE_ABSTRACTTHREADRESOURCE_H
#include <qore/AbstractPrivateData.h>
class AbstractThreadResource : public AbstractPrivateData {
public:
DLLEXPORT virtual ~AbstractThreadResource() {
}
virtual void cleanup(class ExceptionSink *xsink) = 0;
};
#endif
AbstractThreadResource
base class for saving data using Qore&#39;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 &quot;thread_exit&quot; 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...