MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / attachSHM

Method attachSHM

source/kernel/kprocess.cpp:2652–2656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2650}
2651
2652void KProcess::attachSHM(U32 address, const std::shared_ptr<SHM>& shm) {
2653 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(attachedShmMutex);
2654 std::shared_ptr<AttachedSHM> attached = std::make_shared<AttachedSHM>(shm, address, this->id);
2655 this->attachedShm.set(address, attached);
2656}
2657
2658U32 KProcess::shmdt(U32 shmaddr) {
2659 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(attachedShmMutex);

Callers 1

shmatMethod · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected