GDExtensionInterfaceWorkerThreadPoolAddNativeTask typedef

GDExtensionInterfaceWorkerThreadPoolAddNativeTask = Pointer<NativeFunction<GDExtensionInterfaceWorkerThreadPoolAddNativeTaskFunction>>

@name worker_thread_pool_add_native_task @since 4.1

Adds a task to an instance of WorkerThreadPool.

@param p_instance A pointer to a WorkerThreadPool object. @param p_func A pointer to a function to run in the thread pool. @param p_userdata A pointer to arbitrary data which will be passed to p_func. @param p_high_priority Whether or not this is a high priority task. @param p_description A pointer to a String with the task description.

@return The task ID.

Implementation

typedef GDExtensionInterfaceWorkerThreadPoolAddNativeTask =
    ffi.Pointer<
      ffi.NativeFunction<
        GDExtensionInterfaceWorkerThreadPoolAddNativeTaskFunction
      >
    >;