Allow wrapper to notify when an execution job is finished, by making its exec ID
readable through a new #GIOChannel. This function is useful when the notification needs
to be included into a main loop. This also notifies that signals (emitted by objects in
wrapper's internal thread) are available.
The returned #GIOChannel will have something to read everytime an execution job is finished
for an execution job submitted from the calling thread. The user whould read #GdaThreadNotification
structures from the channel and analyse its contents to call gda.thread_wrapper.ThreadWrapper.iterate
or gda.thread_wrapper.ThreadWrapper.fetchResult.
Note1: the new communication channel will only be operational for jobs submitted after this
function returns, and for signals which have been connected after this function returns. A safe
practice is to call this function before the wrapper object has been used.
Note2: this function will return the same #GIOChannel everytime it's called from the same thread.
Allow wrapper to notify when an execution job is finished, by making its exec ID readable through a new #GIOChannel. This function is useful when the notification needs to be included into a main loop. This also notifies that signals (emitted by objects in wrapper's internal thread) are available.
The returned #GIOChannel will have something to read everytime an execution job is finished for an execution job submitted from the calling thread. The user whould read #GdaThreadNotification structures from the channel and analyse its contents to call gda.thread_wrapper.ThreadWrapper.iterate or gda.thread_wrapper.ThreadWrapper.fetchResult.
Note1: the new communication channel will only be operational for jobs submitted after this function returns, and for signals which have been connected after this function returns. A safe practice is to call this function before the wrapper object has been used.
Note2: this function will return the same #GIOChannel everytime it's called from the same thread.
Note3: if the usage of the returned #GIOChannel reveals an error, then glib.iochannel.IOChannel.shutdown and glib.iochannel.IOChannel.unref should be called on the #GIOChannel to let wrapper know it should not use that object anymore.