From 017035f573b3a5e3de9a181c6a3c71837392c6da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E7=9F=B3=E5=A4=B4X2?= Date: Wed, 8 Mar 2017 11:00:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=89=E5=BE=85=E5=8F=A5=E6=9F=84=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=89=80=E5=9C=A8=E4=BB=BB=E5=8A=A1ID=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E7=94=A8=E6=88=B7=E5=AF=B9=E8=B1=A1=EF=BC=8C=E4=BE=BF?= =?UTF-8?q?=E4=BA=8E=E4=B8=9A=E5=8A=A1=E5=B1=82=E8=B7=A8=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E4=BC=A0=E9=80=92=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kernel/WaitHandle.cpp | 3 +++ Kernel/WaitHandle.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Kernel/WaitHandle.cpp b/Kernel/WaitHandle.cpp index 1354434c..1113872f 100644 --- a/Kernel/WaitHandle.cpp +++ b/Kernel/WaitHandle.cpp @@ -5,6 +5,9 @@ WaitHandle::WaitHandle() { Result = false; + + TaskID = Task::Current().ID; + State = nullptr; } bool WaitHandle::WaitOne(int ms) diff --git a/Kernel/WaitHandle.h b/Kernel/WaitHandle.h index 71b618af..1c27e647 100644 --- a/Kernel/WaitHandle.h +++ b/Kernel/WaitHandle.h @@ -5,6 +5,8 @@ class WaitHandle { public: + uint TaskID; // 句柄所在任务 + void* State; // 用户数据 bool Result; // 结果 WaitHandle();