#include void restore_thread(void *a, void *b) { return ; } int main() { GThreadPool *gtp = g_thread_pool_new(restore_thread, NULL, 20, TRUE, NULL); g_thread_pool_free(gtp, TRUE, TRUE); return 0; }