diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2020-08-08 17:32:34 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-10 11:51:45 +0200 |
commit | f5744a6f2f63ba9f881132227514b9b3f9496b63 (patch) | |
tree | 0d8eb80d2df75f42ec76c3a8cad17d4aeaccea68 /Kernel/SharedBuffer.h | |
parent | f22532118411c675e5bd1d2487331e27a872a981 (diff) | |
download | serenity-f5744a6f2f63ba9f881132227514b9b3f9496b63.zip |
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
Diffstat (limited to 'Kernel/SharedBuffer.h')
-rw-r--r-- | Kernel/SharedBuffer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Kernel/SharedBuffer.h b/Kernel/SharedBuffer.h index b7fd269a77..f54a7ca7fe 100644 --- a/Kernel/SharedBuffer.h +++ b/Kernel/SharedBuffer.h @@ -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(); |