123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- /*
- *Copyright 2017~2020 lanzhengpeng
- *
- *Licensed under the Apache License, Version 2.0 (the "License");
- *you may not use this file except in compliance with the License.
- *You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- *Unless required by applicable law or agreed to in writing, software
- *distributed under the License is distributed on an "AS IS" BASIS,
- *WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- *See the License for the specific language governing permissions and
- *limitations under the License.
- */
-
- #pragma once
-
- #include <type_traits>
- #include <atomic>
- #include <chrono>
- #include <array>
- #include <vector>
- #include <deque>
- #include <mutex>
- #include <map>
- #include <list>
- #include <any>
- #include <unordered_map>
- #include <functional>
- #include <optional>
- #include <thread>
- #include <iostream>
- #include <assert.h>
- #if defined(__clang__) && _WIN32
- #include "src/unix/coroutine.h" //编译器内建的协程函数,MSVC和clang不一样
- #else
- #include <experimental/coroutine>
- #endif
-
- #include "src/def.h"
- #include "src/macro_def.inl"
- #include "src/counted_ptr.h"
- #include "src/type_traits.inl"
- #include "src/type_concept.inl"
- #include "src/spinlock.h"
- #include "src/state.h"
- #include "src/future.h"
- #include "src/promise.h"
- #include "src/awaitable.h"
- #include "src/generator.h"
-
- #include "src/rf_task.h"
- #include "src/timer.h"
- #include "src/scheduler.h"
-
- #include "src/promise.inl"
- #include "src/state.inl"
-
- #include "src/switch_scheduler.h"
- #include "src/current_scheduler.h"
-
- #include "src/yield.h"
- #include "src/sleep.h"
- #include "src/when.h"
-
- #include "src/_awaker.h"
- #include "src/ring_queue.h"
- #include "src/intrusive_link_queue.h"
- #include "src/channel.h"
- #include "src/event.h"
- #include "src/mutex.h"
|