kupl_egroup_destroy
Destroy a KUPL egroup.
Interface Definition
void kupl_egroup_destroy(kupl_egroup_h group);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
group |
kupl_egroup_h |
Egroup to be destroyed. |
Input |
Examples
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include <stdio.h> #include "kupl.h" int main() { int executor_num = kupl_get_num_executors(); int executors[executor_num]; for (int i =0; i < executor_num; i++) { executors[i] = i; } kupl_egroup_h egroup = kupl_egroup_create(executors, executor_num); kupl_egroup_destroy(egroup); return 0; } |
The preceding example demonstrates how to create and destroy an egroup. The kupl_egroup_destroy function destroys an egroup created by the kupl_egroup_create function.
Parent topic: executor-Related Functions