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