Qore Programming Language 1.14.2
Loading...
Searching...
No Matches
AbstractQoreThreadResource Class Reference

this class is used by the AbstractThreadResource Qore class to execute the cleanup method More...

#include <QC_AbstractThreadResource.h>

Inheritance diagram for AbstractQoreThreadResource:
[legend]
Collaboration diagram for AbstractQoreThreadResource:
[legend]

Public Member Methods

virtual DLLLOCAL void cleanup (ExceptionSink *xsink)
 this function is called when a thread terminates and a thread resource is still allocated to the thread
 
virtual DLLLOCAL QoreProgramgetProgram ()
 this function is called when clearing thread resources for a particular Program when being destroyed
 
- Public Member Methods inherited from AbstractThreadResource
DLLEXPORT AbstractThreadResource ()
 the constructor is currently empty
 
virtual DLLEXPORT ~AbstractThreadResource ()
 virtual destructor
 
virtual void cleanup (ExceptionSink *xsink)=0
 this function is called when a thread terminates and a thread resource is still allocated to the thread
 
virtual DLLLOCAL QoreProgramgetProgram ()
 this function is called when clearing thread resources for a particular Program when being destroyed
 
- Public Member Methods inherited from AbstractPrivateData
virtual DLLLOCAL void deref ()
 decrements the reference count of the object without the possibility of throwing a Qore-language exception
 
virtual DLLLOCAL void deref (ExceptionSink *xsink)
 decrements the reference count of the object More...
 
DLLLOCAL void ref () const
 increments the reference count of the object
 
- Public Member Methods inherited from QoreReferenceCounter
DLLEXPORT QoreReferenceCounter ()
 creates the reference counter object
 
DLLEXPORT QoreReferenceCounter (const QoreReferenceCounter &old)
 creates a new object with a reference count of 1 More...
 
DLLEXPORT ~QoreReferenceCounter ()
 destroys the reference counter object
 
DLLEXPORT bool is_unique () const
 returns true if the reference count is 1 More...
 
DLLEXPORT int reference_count () const
 gets the reference count More...
 
DLLEXPORT bool ROdereference () const
 atomically decrements the reference count More...
 
DLLEXPORT void ROreference () const
 atomically increments the reference count
 

Additional Inherited Members

- Private Member Methods inherited from AbstractPrivateData
virtual DLLLOCAL ~AbstractPrivateData ()
 as these objects are reference counted, the destructor should be called only when the reference count = 0 and not manually
 

Detailed Description

this class is used by the AbstractThreadResource Qore class to execute the cleanup method


The documentation for this class was generated from the following file: