Top |
Chafa supports a few platform-specific acceleration features. These will be built in and used automatically when available. You can get information about the available features through the function calls documented in this section.
ChafaFeatures
chafa_get_builtin_features (void
);
Gets a list of the platform-specific features this library was built with.
ChafaFeatures
chafa_get_supported_features (void
);
Gets a list of the platform-specific features that are built in and usable on the runtime platform.
gchar *
chafa_describe_features (ChafaFeatures features
);
Takes a set of flags potentially returned from chafa_get_builtin_features()
or chafa_get_supported_features()
and generates a human-readable ASCII
string descriptor.
gint
chafa_get_n_threads (void
);
Queries the maximum number of worker threads to use for parallel processing.
void
chafa_set_n_threads (gint n
);
Sets the maximum number of worker threads to use for parallel processing, or -1 to determine this automatically. The default is -1.
Setting this to 0 or 1 will avoid using thread pools and instead perform all processing in the main thread.
gint
chafa_get_n_actual_threads (void
);
Queries the number of worker threads that will actually be used for parallel processing.