Session::managedCodeTaskGroup() returned the raw std::shared_ptr<TaskGroup> for the managed-code group, exposing the group's full interface -- including close() and addOnComplete() -- to callers, even though those operations are reserved for the Session. Add TaskGroup::TokenSource, a strong handle whose sole role is to serve as an argument to the TaskGroup::Token constructor. Session now exposes managedCodeTokenSource() in its place, so clients can acquire tokens (to keep managed code alive across shutdown) without gaining the ability to close the group or register completion callbacks. |
||
|---|---|---|
| .. | ||
| cmake | ||
| docs | ||
| include | ||
| lib | ||
| test | ||
| tools | ||
| CMakeLists.txt | ||
| LICENSE.TXT | ||
| Maintainers.md | ||