2#include "ipc-namespace.h"
3#include "pedigree/kernel/process/Thread.h"
4#include "pedigree/kernel/processor/Processor.h"
5#include "pedigree/kernel/processor/ProcessorInformation.h"
8uint64_t nextIdentity = 0;
12 : m_Identity(__atomic_add_fetch(&nextIdentity, 1, __ATOMIC_RELAXED)), m_Owner(owner) {}
14IpcNamespace::~IpcNamespace() {
15 posix_sem_namespace_exit(m_Identity);
16 posix_shm_namespace_exit(m_Identity);
17 posix_msg_namespace_exit(m_Identity);
18 posix_mqueue_namespace_exit(m_Identity);
25uint64_t posix_ipc_namespace_id() {
26 auto space = posix_ipc_namespace();
27 return space ? space->identity() : 0;
31 auto space = posix_ipc_namespace();
static ProcessorInformation & information()