Qore Programming Language
0.8.11.1
|
safely manages QoreProgram objects; note the the destructor will block until all background threads in the qore library terminate and until the current QoreProgram terminates More...
#include <QoreProgram.h>
Public Member Functions | |
DLLLOCAL | QoreProgramHelper (ExceptionSink &xs) |
creates the QoreProgram object: DEPRECATED: use QoreProgramHelper(int64, ExceptionSink&) instead | |
DLLLOCAL | QoreProgramHelper (int64 parse_options, ExceptionSink &xs) |
creates the QoreProgram object and sets the parse options | |
DLLLOCAL | ~QoreProgramHelper () |
waits until all background threads in the Qore library have terminated and until the QoreProgram object is done executing and then dereferences the object More... | |
DLLLOCAL QoreProgram * | operator* () |
returns the QoreProgram object being managed | |
DLLLOCAL QoreProgram * | operator-> () |
returns the QoreProgram object being managed | |
safely manages QoreProgram objects; note the the destructor will block until all background threads in the qore library terminate and until the current QoreProgram terminates
not useful in embedded code due to the fact that the destructor blocks until all background threads in the entire qore library terminate
|
inline |
waits until all background threads in the Qore library have terminated and until the QoreProgram object is done executing and then dereferences the object
QoreProgram objects are deleted when there reference count reaches 0.
References thread_counter, QoreProgram::waitForTerminationAndDeref(), and QoreCounter::waitForZero().