Package org.gnome.gio
Class IOSchedulerJob
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gio.IOSchedulerJob
-
Constructor Summary
ConstructorsConstructorDescriptionIOSchedulerJob(MemorySegment address) Deprecated.Create a IOSchedulerJob proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionbooleansendToMainloop(@Nullable SourceFunc func) Deprecated.Use g_main_context_invoke().voidsendToMainloopAsync(@Nullable SourceFunc func) Deprecated.Use g_main_context_invoke().Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
IOSchedulerJob
Deprecated.Create a IOSchedulerJob proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
-
Method Details
-
sendToMainloop
Deprecated.Use g_main_context_invoke().Used from an I/O job to send a callback to be run in the thread that the job was started from, waiting for the result (and thus blocking the I/O job).- Parameters:
func- aGSourceFunccallback that will be called in the original thread- Returns:
- The return value of
func
-
sendToMainloopAsync
Deprecated.Use g_main_context_invoke().Used from an I/O job to send a callback to be run asynchronously in the thread that the job was started from. The callback will be run when the main loop is available, but at that time the I/O job might have finished. The return value from the callback is ignored.Note that if you are passing the
userDatafrom g_io_scheduler_push_job() on to this function you have to ensure that it is not freed beforefuncis called, either by passingnullasnotifyto g_io_scheduler_push_job() or by using refcounting foruserData.- Parameters:
func- aGSourceFunccallback that will be called in the original thread
-
GLib.ThreadPoolorTask.runInThread(org.gnome.gio.TaskThreadFunc)