19 #ifndef _THREADPOOL_H_ 20 #define _THREADPOOL_H_ 48 #include <glib-object.h> 51 #define TOOLS_CORE_PROP_TPOOL "tcs_prop_thread_pool" 71 void (*cancel)(guint id);
73 const gchar *threadName,
98 g_object_get(ctx->
serviceObj, TOOLS_CORE_PROP_TPOOL, &pool, NULL);
134 return pool->submit(ctx, cb, data, dtor);
162 pool->cancel(taskId);
200 static inline gboolean
202 const gchar *threadName,
210 return pool->start(ctx, threadName, cb, interrupt, data, dtor);