Qore Programming Language
0.9.16
|
use this class to temporarily register and deregister a foreign thread to allow Qore code to be executed and the Qore library to be used from threads not created by the Qore library More...
#include <qore_thread.h>
Public Member Methods | |
DLLEXPORT | QoreForeignThreadHelper () |
registers the current thread as a foreign thread; the thread will be deregistered with q_deregister_foreign_thread() in the destructor | |
DLLEXPORT | QoreForeignThreadHelper (int tid) |
registers the current thread as a foreign thread; the tid given must be already reserved with q_reserve_foreign_thread_id(); the thread will be deregistered with q_deregister_reserved_foreign_thread() in the destructor | |
DLLEXPORT | ~QoreForeignThreadHelper () |
deregisters the current thread if the registration was successful using either q_deregister_foreign_thread() or q_reserve_foreign_thread_id(), depending on the constructor used | |
use this class to temporarily register and deregister a foreign thread to allow Qore code to be executed and the Qore library to be used from threads not created by the Qore library