mirror-llvm-project/orc-rt
Lang Hames 3c6b487042
[orc-rt] Add TaskGroup::TokenSource; drop raw group accessor (#210240)
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.
2026-07-17 14:45:45 +10:00
..
cmake
docs [orc-rt] Add a coding conventions doc (#208623) 2026-07-10 16:33:41 +10:00
include [orc-rt] Add TaskGroup::TokenSource; drop raw group accessor (#210240) 2026-07-17 14:45:45 +10:00
lib [orc-rt] Session::OnCallControllerReturnFn, comments. NFC. (#210035) 2026-07-16 21:32:11 +10:00
test [orc-rt] Add TaskGroup::TokenSource; drop raw group accessor (#210240) 2026-07-17 14:45:45 +10:00
tools [orc-rt] Rename orc-executor to ogre (#209143) 2026-07-13 21:50:41 +10:00
CMakeLists.txt [orc-rt] Move the unit tests into test/unit (#208431) 2026-07-09 21:32:26 +10:00
LICENSE.TXT
Maintainers.md [orc-rt] Add Maintainers.md. (#175691) 2026-01-13 12:08:27 +11:00