-
Notifications
You must be signed in to change notification settings - Fork 6
Group Relation
ZjzMisaka edited this page Jul 16, 2024
·
4 revisions
Group relation allows establishing parent-child relationships between groups. When performing operations on a parent group, the operations will also include the child groups.
To set group relations, use the SetGroupRelation
method. This method establishes a parent-child relationship between two groups.
// Establishes GroupB as a child of GroupA
powerPool.SetGroupRelation("GroupA", "GroupB");
To remove group relations, use the RemoveGroupRelation
method. This method can either remove a specific child group from a parent group or remove all child groups from a parent group.
// Removes all child groups from GroupA
powerPool.RemoveGroupRelation("GroupA");
// Removes GroupB from GroupA's child groups
powerPool.RemoveGroupRelation("GroupA", "GroupB");
To reset all group relations, use the ResetGroupRelation
method. This method removes all existing parent-child relationships between groups.
// Clears all group relations, resetting the structure to its initial state
powerPool.ResetGroupRelation();
- Pool Control | Work Control
- Thread Pool Sizing
- Work Callback | Default Callback
- Parallel Execution
- Work Priority | Thread Priority
- Error Handling
- Work Timeout | Cumulative Work Timeout
- Work Dependency
- Work Group
- Events
- Runtime Status
- Running Timer
- Queue Type (FIFO | LIFO | Custom)
- Load Balancing
- Lock-Free
Core
Results
Options