Package org.gnome.gio
Interface IOSchedulerJobFunc
- All Superinterfaces:
FunctionPointer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
@Deprecated
@Generated("io.github.jwharm.JavaGI")
public interface IOSchedulerJobFunc
extends FunctionPointer
Deprecated.
Functional interface declaration of the
IOSchedulerJobFunc
callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
run
(IOSchedulerJob job, @Nullable Cancellable cancellable, @Nullable MemorySegment data) Deprecated.default MemorySegment
toCallback
(Arena arena) Deprecated.Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.default int
upcall
(MemorySegment job, MemorySegment cancellable, MemorySegment data) Deprecated.Theupcall
method is called from native code.
-
Method Details
-
run
@Deprecated boolean run(IOSchedulerJob job, @Nullable @Nullable Cancellable cancellable, @Nullable @Nullable MemorySegment data) Deprecated.UseGLib.ThreadPool
orTask.runInThread(org.gnome.gio.TaskThreadFunc)
I/O Job function.Long-running jobs should periodically check the
cancellable
to see if they have been cancelled. -
upcall
Deprecated.Theupcall
method is called from native code. The parameters are marshaled andrun(org.gnome.gio.IOSchedulerJob, org.gnome.gio.Cancellable, java.lang.foreign.MemorySegment)
is executed. -
toCallback
Deprecated.Creates a native function pointer to theupcall(java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment, java.lang.foreign.MemorySegment)
method.- Specified by:
toCallback
in interfaceFunctionPointer
- Parameters:
arena
- the function pointer will be allocated in this arena- Returns:
- the native function pointer
-
GLib.ThreadPool
orTask.runInThread(org.gnome.gio.TaskThreadFunc)