GDExtensionInterfaceWorkerThreadPoolAddNativeGroupTask

Type Alias GDExtensionInterfaceWorkerThreadPoolAddNativeGroupTask 

Source
pub type GDExtensionInterfaceWorkerThreadPoolAddNativeGroupTask = Option<unsafe extern "C" fn(p_instance: GDExtensionObjectPtr, p_func: GDExtensionWorkerThreadPoolGroupTask, p_userdata: *mut c_void, p_elements: c_int, p_tasks: c_int, p_high_priority: GDExtensionBool, p_description: GDExtensionConstStringPtr) -> i64>;
Expand description

@name worker_thread_pool_add_native_group_task @since 4.1

Adds a group 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_elements The number of element needed in the group. @param p_tasks The number of tasks needed in the group. @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 group ID.

@see WorkerThreadPool::add_group_task()

Aliased Type§

pub enum GDExtensionInterfaceWorkerThreadPoolAddNativeGroupTask {
    None,
    Some(unsafe extern "C" fn(*mut __GdextObject, Option<unsafe extern "C" fn(*mut c_void, u32)>, *mut c_void, i32, i32, u8, *const __GdextString) -> i64),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut __GdextObject, Option<unsafe extern "C" fn(*mut c_void, u32)>, *mut c_void, i32, i32, u8, *const __GdextString) -> i64)

Some value of type T.