소스 검색

Kernel: Add LogStream operator<< for Process.

It simply prints "process-name(pid)", nothing fancy, but kinda useful.
Andreas Kling 6 년 전
부모
커밋
cda5a6eca3
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      Kernel/Process.h

+ 5 - 0
Kernel/Process.h

@@ -474,3 +474,8 @@ inline int Thread::pid() const
 {
     return m_process.pid();
 }
+
+inline const LogStream& operator<<(const LogStream& stream, const Process& process)
+{
+    return stream << process.name() << '(' << process.pid() << ')';
+}