Loading...
Searching...
No Matches
thread_group
Go to the documentation of this file.
// vi:set ft=cpp: -*- Mode: C++ -*-
/*
* Copyright (C) 2022-2025 Kernkonzept GmbH.
* Author(s): Adam Lackorzynski <adam@os.inf.tu-dresden.de>
* Frank Mehnert <frank.mehnert@kernkonzept.com>
*
* License: see LICENSE.spdx (in this directory or the directories above)
*/
#pragma once
#include <l4/sys/capability>
#include <l4/sys/thread_group.h>
namespace L4 {
class L4_EXPORT Thread_group :
public Kobject_t<Thread_group, Snd_destination, L4_PROTO_THREAD_GROUP,
Type_info::Demand_t<1>>
{
public:
l4_msgtag_t add(Cap<Thread> thread, l4_utcb_t *utcb = l4_utcb()) noexcept
{ return l4_thread_group_add_u(cap(), thread.cap(), utcb); }
l4_msgtag_t remove(Cap<Thread> thread, l4_utcb_t *utcb = l4_utcb()) noexcept
{ return l4_thread_group_remove_u(cap(), thread.cap(), utcb); }
};
}
capability
L4::Cap related definitions.
L4::Cap_base::cap
l4_cap_idx_t cap() const noexcept
Return capability selector.
Definition capability.h:49
L4::Cap
C++ interface for capabilities.
Definition capability.h:224
L4::Kobject_t
Helper class to create an L4Re interface class that is derived from a single base class.
Definition __typeinfo.h:750
L4::Kobject::cap
l4_cap_idx_t cap() const noexcept
Return capability selector.
Definition kobject:69
L4::Thread_group
C++ L4 kernel thread group interface, see Thread groups for the C interface.
Definition thread_group:37
L4::Thread_group::add
l4_msgtag_t add(Cap< Thread > thread, l4_utcb_t *utcb=l4_utcb()) noexcept
Add thread to a thread group.
Definition thread_group:53
L4::Thread_group::remove
l4_msgtag_t remove(Cap< Thread > thread, l4_utcb_t *utcb=l4_utcb()) noexcept
Remove thread from a thread group.
Definition thread_group:67
l4_utcb_t
struct l4_utcb_t l4_utcb_t
Opaque type for the UTCB.
Definition utcb.h:56
l4_utcb
l4_utcb_t * l4_utcb(void) L4_NOTHROW L4_PURE
Get the UTCB address.
Definition utcb.h:346
L4_EXPORT
#define L4_EXPORT
Attribute to mark functions, variables, and data types as being exported from a library.
Definition compiler.h:214
L4
L4 low-level kernel interface.
Definition l4sys-l4f-groups.dox:50
l4_msgtag_t
Message tag data structure.
Definition types.h:154
thread_group.h