Function

Vipsg_thread_new

Declaration [src]

GThread*
vips_g_thread_new (
  const char* domain,
  GThreadFunc func,
  gpointer data
)

Description [src]

Wrapper for g_thread_try_new().

Parameters

domain const char*
 

An (optional) name for the new thread.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
func GThreadFunc
 

A function to execute in the new thread.

data gpointer
 

An argument to supply to the new thread.

Return value

Returns: GThread
 

The new GThread, or NULL if an error occurred.

 The caller of the function takes ownership of the data, and is responsible for freeing it.