From d758986d8d6aeb4dab52989e18baaed5f931e345 Mon Sep 17 00:00:00 2001 From: "hongwei.li" Date: Wed, 10 Aug 2022 13:59:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=88=E6=9D=83=E5=A3=B0?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/runnable.rs | 3 +++ src/state.rs | 3 +++ src/task.rs | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/runnable.rs b/src/runnable.rs index bdaecfc..d27f4be 100644 --- a/src/runnable.rs +++ b/src/runnable.rs @@ -1,3 +1,5 @@ +// Copyright (C) 2022-2022 Agilor Co.,Ltd. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 use crate::raw::RawTask; use crate::state::{AWAITER, CLOSED, COMPLETED, SCHEDULED}; use crate::Task; @@ -99,3 +101,4 @@ where }; (runnable, task) } + diff --git a/src/state.rs b/src/state.rs index 2bd403e..837f9a1 100644 --- a/src/state.rs +++ b/src/state.rs @@ -1,3 +1,5 @@ +// Copyright (C) 2022-2022 Agilor Co.,Ltd. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 pub(crate) const SCHEDULED: usize = 1 << 0; pub(crate) const RUNNING: usize = 1 << 1; pub(crate) const COMPLETED: usize = 1 << 2; @@ -7,3 +9,4 @@ pub(crate) const AWAITER: usize = 1 << 5; pub(crate) const REGISTERING: usize = 1 << 6; pub(crate) const NOTIFYING: usize = 1 << 7; pub(crate) const REFERENCE: usize = 1 << 8; + diff --git a/src/task.rs b/src/task.rs index d3ecf26..3d94107 100644 --- a/src/task.rs +++ b/src/task.rs @@ -1,3 +1,5 @@ +// Copyright (C) 2022-2022 Agilor Co.,Ltd. All rights reserved. +// SPDX-License-Identifier: Apache-2.0 use core::future::Future; use core::marker::{PhantomData, Unpin}; use core::mem::forget; @@ -168,3 +170,4 @@ impl Future for Task { } } } + -- Gitee