[Vala] [Bindings] for ThreadPool broken



When used TreadPool, the c compiler reports:

***error: too few arguments to function `g_thread_pool_free'***

ThreadPool is defined in glib-2.0.vapi as:

    [Compact]
    [CCode (free_function = "g_thread_pool_free")]
    public class ThreadPool {
     ...
    }

but g_thread_pool_free accepts 2 more args (except the thread pool, which is passed in) -  immediate and wait_

Is it possible way to set (some defaults for) those?
If not, then one must manually manage the pool, but of course, there no bindings for g_thread_pool_free in the vapi.

MihailNaydenov








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]