mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
Kernel: PID/TID typing
This compiles, and contains exactly the same bugs as before. The regex 'FIXME: PID/' should reveal all markers that I left behind, including: - Incomplete conversion - Issues or things that look fishy - Actual bugs that will go wrong during runtime
This commit is contained in:
parent
f225321184
commit
f5744a6f2f
26 changed files with 136 additions and 111 deletions
|
@ -36,12 +36,12 @@ namespace Kernel {
|
|||
class SharedBuffer {
|
||||
private:
|
||||
struct Reference {
|
||||
Reference(pid_t pid)
|
||||
Reference(ProcessID pid)
|
||||
: pid(pid)
|
||||
{
|
||||
}
|
||||
|
||||
pid_t pid;
|
||||
ProcessID pid;
|
||||
unsigned count { 0 };
|
||||
WeakPtr<Region> region;
|
||||
};
|
||||
|
@ -64,12 +64,12 @@ public:
|
|||
}
|
||||
|
||||
void sanity_check(const char* what);
|
||||
bool is_shared_with(pid_t peer_pid) const;
|
||||
bool is_shared_with(ProcessID peer_pid) const;
|
||||
void* ref_for_process_and_get_address(Process& process);
|
||||
void share_with(pid_t peer_pid);
|
||||
void share_with(ProcessID peer_pid);
|
||||
void share_globally() { m_global = true; }
|
||||
void deref_for_process(Process& process);
|
||||
void disown(pid_t pid);
|
||||
void disown(ProcessID pid);
|
||||
size_t size() const { return m_vmobject->size(); }
|
||||
void destroy_if_unused();
|
||||
void seal();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue