pub type GDExtensionInterfaceWorkerThreadPoolAddNativeTask = Option<unsafe extern "C" fn(p_instance: GDExtensionObjectPtr, p_func: GDExtensionWorkerThreadPoolTask, p_userdata: *mut c_void, p_high_priority: GDExtensionBool, p_description: GDExtensionConstStringPtr) -> i64>;Expand description
@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.
Aliased Type§
pub enum GDExtensionInterfaceWorkerThreadPoolAddNativeTask {
None,
Some(unsafe extern "C" fn(*mut __GdextObject, Option<unsafe extern "C" fn(*mut c_void)>, *mut c_void, u8, *const __GdextString) -> i64),
}