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("org.javagi.JavaGI")
public interface IOSchedulerJobFunc
extends FunctionPointer
Deprecated.
Functional interface declaration of the IOSchedulerJobFunc callback.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanrun(IOSchedulerJob job, @Nullable Cancellable cancellable, @Nullable MemorySegment data) Deprecated.default MemorySegmenttoCallback(Arena arena) Deprecated.Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment)method.default intupcall(MemorySegment job, MemorySegment cancellable, MemorySegment data) Deprecated.Theupcallmethod is called from native code.
-
Method Details
-
run
@Deprecated boolean run(IOSchedulerJob job, @Nullable Cancellable cancellable, @Nullable MemorySegment data) Deprecated.UseGLib.ThreadPoolorTask.runInThread(TaskThreadFunc)I/O Job function.
Long-running jobs should periodically check the
cancellableto see if they have been cancelled.- Parameters:
job- aGIOSchedulerJob.cancellable- optionalGCancellableobject,nullto ignore.data- data passed to the callback function- Returns:
trueif this function should be called again to complete the job,falseif the job is complete (or cancelled)
-
upcall
Deprecated.Theupcallmethod is called from native code. The parameters are marshaled andrun(IOSchedulerJob, Cancellable, MemorySegment)is executed. -
toCallback
Deprecated.Creates a native function pointer to theupcall(MemorySegment, MemorySegment, MemorySegment)method.- Specified by:
toCallbackin interfaceFunctionPointer- Parameters:
arena- the arena in which the function pointer is allocated- Returns:
- the native function pointer
-
GLib.ThreadPoolorTask.runInThread(TaskThreadFunc)