3 * Copyright (c) 2020 Project CHIP Authors
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
20 * This file declares the abstraction of system wake event used for
21 * resuming task from select system call.
26 // Include configuration headers
27 #include <system/SystemConfig.h>
29 #include <system/SystemError.h>
34 using ::chip::System::Error;
39 Error Open(); /**< Initialize the pipeline */
40 Error Close(); /**< Close both ends of the pipeline. */
42 #if CHIP_SYSTEM_CONFIG_USE_POSIX_PIPE
43 int GetNotifFD() const { return mFDs[FD_READ]; }
45 int GetNotifFD() const { return mFD; }
48 Error Notify(); /**< Set the event. */
49 Error Confirm(); /**< Clear the event. */
52 #if CHIP_SYSTEM_CONFIG_USE_POSIX_PIPE