Qore Programming Language Reference Manual
1.8.0
|
This class defines an abstract interface for thread resources. More...
Public Member Methods | |
abstract nothing | cleanup () |
This method is called by Qore itself when the thread resource is still allocated and requires cleanup. More... | |
constructor () | |
Creates the internal thread resource object. | |
destructor () | |
removes the thread resource if set; if so then the cleanup() method is called | |
This class defines an abstract interface for thread resources.
The following functions allow classes of this type to be set or removed as thread resources:
If the thread resource is still set when the destructor is run, then the destructor frees the thread resource and calls cleanup().
|
pure virtual |
This method is called by Qore itself when the thread resource is still allocated and requires cleanup.
This method should clean up the resource and normally should throw an appropriate exception explaining:
This method is called in the following situations: