Sets our main struct and passes it to the parent class.
This function creates a new thread pool.
A destructor is present on this object, but not explicitly documented in the source.
Frees all resources allocated for pool.
Returns the maximal number of threads for pool.
Returns the number of threads currently running in pool.
the main Gtk struct as a void*
Get the main Gtk struct
Moves the item to the front of the queue of unprocessed items, so that it will be processed next.
Inserts data into the list of tasks to be executed by pool.
Sets the maximal allowed number of threads for pool. A value of -1 means that the maximal number of threads is unlimited. If pool is an exclusive thread pool, setting the maximal number of threads to -1 is not allowed.
Sets the function used to sort the list of tasks. This allows the tasks to be processed by a priority determined by func, and not just in the order in which they were added to the pool.
Returns the number of tasks still unprocessed in pool.
are all threads exclusive to this pool
the function to execute in the threads of this pool
the user data for the threads of this pool
This function will return the maximum interval that a thread will wait in the thread pool for new tasks before being stopped.
Returns the maximal allowed number of unused threads.
Returns the number of currently unused threads.
This function will set the maximum interval that a thread waiting in the pool for new tasks can be idle for before being stopped. This function is similar to calling Thread.poolStopUnusedThreads on a regular timeout, except this is done on a per thread basis.
Sets the maximal number of unused threads to max_threads. If max_threads is -1, no limit is imposed on the number of unused threads.
Stops all currently unused threads. This does not change the maximal number of unused threads. This function can be used to regularly stop all unused threads e.g. from Timeout.add.
the main Gtk struct
The glib.ThreadPool struct represents a thread pool. It has three public read-only members, but the underlying struct is bigger, so you must not copy this struct.