mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
23 lines
376 B
C
23 lines
376 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <AK/Retainable.h>
|
||
|
|
#include <AK/RetainPtr.h>
|
||
|
|
#include <Kernel/KResult.h>
|
||
|
|
|
||
|
|
class VMObject;
|
||
|
|
|
||
|
|
class SharedMemory : public Retainable<SharedMemory> {
|
||
|
|
public:
|
||
|
|
static Retained<SharedMemory> create();
|
||
|
|
~SharedMemory();
|
||
|
|
|
||
|
|
KResult truncate(int);
|
||
|
|
|
||
|
|
private:
|
||
|
|
SharedMemory();
|
||
|
|
|
||
|
|
int m_uid { 0 };
|
||
|
|
int m_gid { 0 };
|
||
|
|
RetainPtr<VMObject> m_vmo;
|
||
|
|
};
|