Valadoc
|
Vala
|
Tutorial
|
API-References
|
Markup
Packages
gstreamer-0.10
Gst
TaskPool
TaskPool
cleanup
join
prepare
push
pool
TaskPool
Object Hierarchy:
Description:
public
class
TaskPool
:
Object
The
TaskPool
object.
Namespace:
Gst
Package:
gstreamer-0.10
Content:
Creation methods:
public
TaskPool
()
Create a new default task pool. The default task pool will use a regular GThreadPool for threads.
Methods:
public
virtual
void
cleanup
()
Wait for all tasks to be stopped. This is mainly used internally to ensure proper cleanup of internal data structures in test suites. MT safe.
public
virtual
void
join
(
void
* id)
Join a task and/or return it to the pool.
id
is the id obtained from
push
.
public
virtual
void
prepare
()
throws
Error
Prepare the taskpool for accepting
push
operations. MT safe.
public
virtual
void
*
push
(
TaskPoolFunction
func)
throws
Error
Start the execution of a new thread from
pool
. function. This pointer can be NULL, you must check
error
to detect errors.
Fields:
public
unowned
ThreadPool
pool