32#ifndef _QORE_INTERN_ABSTRACTTHREADRESOURCE_H
34#define _QORE_INTERN_ABSTRACTTHREADRESOURCE_H
36#include <qore/AbstractThreadResource.h>
39DLLLOCAL
extern QoreClass* QC_ABSTRACTTHREADRESOURCE;
this class is used by the AbstractThreadResource Qore class to execute the cleanup method
Definition: QC_AbstractThreadResource.h:43
virtual DLLLOCAL void cleanup(ExceptionSink *xsink)
this function is called when a thread terminates and a thread resource is still allocated to the thre...
Definition: QC_AbstractThreadResource.h:56
virtual DLLLOCAL QoreProgram * getProgram()
this function is called when clearing thread resources for a particular Program when being destroyed
Definition: QC_AbstractThreadResource.h:67
base class for saving data using Qore's thread resource management system
Definition: AbstractThreadResource.h:51
container for holding Qore-language exception information and also for registering a "thread_exit" ca...
Definition: ExceptionSink.h:50
DLLEXPORT const QoreValue getExceptionErr()
returns the error of the top exception
DLLEXPORT void clear()
deletes the exception list immediately
defines a Qore-language class
Definition: QoreClass.h:249
contains constants, classes, and subnamespaces in QoreProgram objects
Definition: QoreNamespace.h:65
the implementation of Qore's object data type, reference counted, dynamically-allocated only
Definition: QoreObject.h:60
DLLEXPORT void tRef() const
increments the existence reference count
DLLEXPORT void tDeref()
decrements the existence reference count, when it reaches 0 the C++ object ("this") will be deleted
DLLEXPORT QoreValue evalMethod(const QoreString *name, const QoreListNode *args, ExceptionSink *xsink)
evaluates the given method with the arguments passed and returns the return value,...
DLLEXPORT QoreProgram * getProgram() const
returns the QoreProgram object associated with this object
supports parsing and executing Qore-language code, reference counted, dynamically-allocated only
Definition: QoreProgram.h:128
DLLLOCAL detail::QoreValueCastHelper< T >::Result get()
returns the value as the given type
Definition: QoreValue.h:214
DLLEXPORT qore_type_t getType() const
returns the type of value contained
Qore's string value type, reference counted, dynamically-allocated only.
Definition: QoreStringNode.h:50
unsigned qore_classid_t
used for the unique class ID for QoreClass objects
Definition: common.h:79
const qore_type_t NT_STRING
type value for QoreStringNode
Definition: node_types.h:45
The main value class in Qore, designed to be passed by value.
Definition: QoreValue.h:276
DLLEXPORT void discard(ExceptionSink *xsink)
dereferences any contained AbstractQoreNode pointer and sets to 0; does not modify other values