Skip to content
Search

Pthread cleanup push

lastmod 2019-12-20created 2019-12-201 edits

Registers a clean handler function.

About

If a thread was using some resource, it must handle things such as returning it before terminating. This kind of behavior can be performed by registering cleanup handler functions. These are the pthread_cleanup_push and pthread_cleanup_pop functions.

Synopsis

void pthrad_cleanup_push(void (*routine) (void *), void* arg);

See also

Favorite site

author Zer0 sitemap