Method
DexSchedulerspawn
Declaration [src]
DexFuture*
dex_scheduler_spawn (
DexScheduler* scheduler,
gsize stack_size,
DexFiberFunc func,
gpointer func_data,
GDestroyNotify func_data_destroy
)
Description [src]
Request scheduler
to spawn a DexFiber
.
The fiber will have it’s own stack and cooperatively schedules among other fibers sharing the schaeduler.
If stack_size
is 0, it will set to a sensible default. Otherwise, it is
rounded up to the nearest page size.
Parameters
stack_size |
gsize |
Stack size in bytes or 0 |
|
func |
DexFiberFunc |
A |
|
func_data |
gpointer |
Closure data for |
|
func_data_destroy |
GDestroyNotify |
Closure notify for |
Return value
Returns: | DexFuture |
A |
|
The caller of the method takes ownership of the data, and is responsible for freeing it. |